Commit 7c16ca1f authored by Faezeh KHORRAM's avatar Faezeh KHORRAM 💬
Browse files

save alive mutants

parent eb5302dc
......@@ -243,6 +243,15 @@ public class MutationScoreCalculator {
sb.append("Killed mutant " + (j++) + ": " + mutant + "\n");
}
}
if (numOfKilledMutants < numOfMutants) {
sb.append("--------------------------------------------------\n");
sb.append("Number of alive mutants: " + (numOfMutants - numOfKilledMutants) + "\n");
int j = 1;
for (String mutant:getAliveMutants()) {
sb.append("Alive mutant " + (j++) + ": " + mutant + "\n");
}
}
try {
Path filePath = Paths.get(outputFilePath);
Files.writeString(filePath,sb);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment