-
Notifications
You must be signed in to change notification settings - Fork 13
Stop on first test failing
DurieuxPol edited this page Apr 8, 2024
·
1 revision
There is an option to the mutation testing analysis to stop or not on the first failing test when evaluating a mutant. It's a boolean (stop -> true, don't stop -> false), and by default it's true.
If false, all the available tests are run when evaluating a mutant, even if a test fails and the mutant can already be considered killed.
If true, the analysis will run the test suite until one of them fails and the mutant is killed, or until all tests passed and the mutant is alive.
Usually it's not necessary not to stop on the first failing test, but in some cases in can be useful, especially for utilities.
To use this feature on your analysis:
analysis doNotStopOnErrorOrFail
You can also use the accessor:
analysis stopOnErrorOrFail: false