Skip to content

Commit

Permalink
Exit non-zero if any mutants survived
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Aug 13, 2024
1 parent 97dd42e commit 17397bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-mutation/gambitTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ async function runMutationTesting() {
console.log(
`\n====== Done in ${((endTime - startTime) / (60 * 1000)).toFixed(2)} min`
)

// Exit with non-zero if any mutants survived
if (results.some(result => result.status === MutantStatus.SURVIVED)) {
process.exit(1)
}
}

async function _generateMutants(): Promise<Mutant[]> {
Expand Down

0 comments on commit 17397bf

Please sign in to comment.