mutmut icon indicating copy to clipboard operation
mutmut copied to clipboard

Mutmut should rerun tests without mutation when tests hash changes

Open boxed opened this issue 5 years ago • 3 comments

I've made the sloppy mistake several times now to run mutmut against broken tests, this results in mutmut marking all mutants as killed, and the only way out of this state is to remove the cache and start over. This is not a good experience.

boxed avatar Mar 14 '19 10:03 boxed

I had this happen this past week when I fudged an elastic search connection mid-run and everything was passing because my tests wouldn't pass in that state.

would it make sense to make sure the tests pass midway through, even if the tests hash has not changed?

bk521234 avatar Dec 06 '20 04:12 bk521234

Ah yes. This ticket is actually fixed on master. But yes, it's correct that mutmut should run tests once in a while to make sure not mutating still passes all tests.

boxed avatar Dec 06 '20 12:12 boxed

Version 2.2.0 still has this problem

krystalgamer avatar Nov 06 '21 00:11 krystalgamer