commit d70a23bd7b159b2473a3a364b98a56becb81afb1 from: Sergey Bronnikov date: Tue Apr 06 22:07:31 2021 UTC Support junit report format - allow to choose one of three format types: text, html or junit using option in command line - support output to junit format using python module junit-xml Part of #1 commit - 4ba5f6ce4102f1025c7af6fb59093b8fab5bd87c commit + d70a23bd7b159b2473a3a364b98a56becb81afb1 blob - 30faf0f920a3d246386bc341c4507c02db33a676 blob + 32229afe9e3b17402c5fb5fbf7ff8cdbf78aed86 --- README.md +++ README.md @@ -16,4 +16,5 @@ $ ./generate.py --data tests/static/additional-propert ## Features: - generate self-containing HTML report with anchor web-links +- generate JUnit report - generate patches for each mutant blob - 71f14b87f91feebf8d675ca16719a501977b82b1 blob + 8af43e582c1b83a477cef6a5b4dde81880704551 --- generate.py +++ generate.py @@ -4,9 +4,13 @@ import argparse import datetime import json import os - +from junit_xml import TestSuite, TestCase from jinja2 import Template +FORMAT_TEXT = "text" +FORMAT_HTML = "html" +FORMAT_JUNIT = "junit" + STATUS_KILLED = "Killed" STATUS_SURVIVED = "Survived" STATUS_NO_COVERAGE = "NoCoverage" @@ -264,6 +268,27 @@ Generated by