mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-26 18:58:50 +00:00
Do not count an unmutated worker build as a kill.
A worker that fails before any mutation was recording every mutant as killed. Run the tests once on the unmutated overlay and stop the way a failed baseline does. The tests also kill the mutants in the functions this change touches. Proved by a stand-in xcodebuild that fails only inside a worker, and by mutator on engine.py and workers.py: 140 killed, 0 survived, 0 uncovered. pytest: 139 passed, 1 skipped. Co-authored-by: Robert C. Martin <[email protected]>
This commit is contained in:
co-authored by
Robert C. Martin
parent
0cfa995431
commit
4fea247660
@@ -721,8 +721,10 @@ def test_selection_coverage_and_timeouts_keep_their_boundaries(tmp_path, capsys,
|
||||
mutation_warning=50,
|
||||
baselines={},
|
||||
)
|
||||
# Project baseline, then the unmutated worker, then a mutant at 10x.
|
||||
assert clock.timeouts[0] is None
|
||||
assert clock.timeouts[1] == 300
|
||||
assert clock.timeouts[1] is None
|
||||
assert clock.timeouts[2] == 300
|
||||
|
||||
class Red:
|
||||
verbose = False
|
||||
|
||||
Reference in New Issue
Block a user