commit 568de39969dba9780429ff37e612382ec145b9d6 from: Sergey Bronnikov date: Mon Dec 07 12:38:27 2020 UTC Update default HTML template commit - 00c9d937a33e25d3d4c546d049ccc7eae3699c11 commit + 568de39969dba9780429ff37e612382ec145b9d6 blob - e8d73301ad2db607e6a368dd224d803755b7f2fc blob + 2464e4df4be4115e48c1f1f96155346ee5a64149 --- generate.py +++ generate.py @@ -25,6 +25,89 @@ Time of generation: {{ current_time.strftime('%d-%m-%Y """ DEFAULT_HTML_TEMPLATE = """ + + + + + + Mutation testing results + + + +
+
Mutation states
+
+
Killed
+When at least one test failed while this mutant was active, the mutant is +killed. This is what you want, good job! +
+ +
+
Survived
+When all tests passed while this mutant was active, the mutant survived. You're +missing a test for it. +
+ +
+
No coverage
+No tests were executed for this mutant. It probably is located in a part of the +code not hit by any of your tests. This means the mutant survived and you are +missing a test case for it. +
+ +
+
Timeout
+The running of tests with this mutant active resulted in a timeout. For +example, the mutant resulted in an infinite loop in your code. Don't spend too +much attention to this mutant. It is counted as "detected". The logic here is +that if this mutant were to be injected in your code, your CI build would +detect it because the tests will never complete. +
+ +
+
Runtime error
+The running of the tests resulted in an error (rather than a failed test). This +can happen when the testrunner fails. For example, when a testrunner throws an +OutOfMemoryError or for dynamic languages where the mutant resulted in +unparsable code. Don't spend too much attention looking at this mutant. It is +not represented in your mutation score. +
+ +
+
Compile error
+The mutant resulted in a compiler error. This can happen in compiled languages. +Don't spend too much attention looking at this mutant. It is not represented in +your mutation score. +
+ +
+
Ignored
+The mutant was not tested because the config of the user asked for it to be +ignored. This will not count against your mutation score but will show up in +reports. +
+
+ +
+
Mutation metrics
+
+ {% set files = json_data['files'] %} {% for filename, properties in files.items() %} @@ -39,6 +122,8 @@ DEFAULT_HTML_TEMPLATE = """

Schema version: {{ version }}

Time of generation: {{ current_time.strftime('%d-%m-%Y %H:%M') }}

+ + """ def print_stdout(json_data):