You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example output is below. The failures are listed in the 'Escaped mutants' section of the infection-log.txt file. For the example below the failure would be file /projects/danack/github/params/lib/Params/Params.php on line 36 and the error type would be OneZeroInteger.
Escaped mutants:
================
1) /projects/danack/github/params/lib/Params/Params.php:36 [M] OneZeroInteger
--- Original
+++ New
@@ @@
{
foreach ($namedRules as $parameterName => $rules) {
// TODO - test for packed array?
- if (count($rules) === 0) {
+ if (count($rules) === 1) {
throw new RulesEmptyException();
}
$firstRule = $rules[0];
PHPUnit 8.1.2 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)
Time: 29 ms, Memory: 4.00 MB
OK (3 tests, 13 assertions)
Timed Out mutants:
==================
Killed mutants:
===============
1) /projects/danack/github/params/lib/Params/Exception/ValidationException.php:29 [M] OneZeroInteger
The text was updated successfully, but these errors were encountered:
Are all escaped mutants recorded in the same place? Do you have an example with multiple escaped mutations over multiple files?
I assume some kind of state machine that parses infection-log.txt line by line could work.
It would first look for the string Escaped mutants:
and then the next line it would expect is================
If would then parse all lines that start <number>) and pull out the file, line number and type. in above example:
Example output is below. The failures are listed in the 'Escaped mutants' section of the infection-log.txt file. For the example below the failure would be file
/projects/danack/github/params/lib/Params/Params.php
on line36
and the error type would beOneZeroInteger
.The text was updated successfully, but these errors were encountered: