Comparison
record in io.mutastic.api
record Comparison( OptionalDouble previousScore, boolean sameCode, boolean sameTool, List<Comparison.Flip> flips)This run against the last one.
With the code and mutastic unchanged, a mutant is caught or missed the same way every time unless a test behaves differently between runs. So a mutant that was caught last run and is missed now, or the other way round, points at the test that caught it: likely flaky. With either changed, a flip is just the change at work.
Components
previousScore | the last run’s score; none when it had no mutants to score |
|---|---|
sameCode | whether the code and tests are byte for byte what the last run had |
sameTool | whether the same mutastic ran |
flips | mutants caught in one run and not the other |
Methods
sameness
String sameness()same code, code changed or mutastic changed: what explains a difference.
likelyFlaky
Map<String, List<String>> likelyFlaky()Each likely flaky test and the mutants whose results it changed: empty unless the code and mutastic are the same.