Closed tomato42 closed 5 years ago
Mutmut does this precisely to avoid this. It's a good sanity check!
That's what the recently re-added baseline
command is for. It runs your suite over unmutated code; if there are any test failures, it gives a return code of 1, otherwise 0.
Does this give you what you need?
That's what the recently re-added
baseline
command is for.
where it's documented?
where it's documented?
Unfortunately it's not currently mentioned in the documentation. It was introduced in a flurry of messy PRs that I barely had time to process (hence some of the recent quality issues!)
You can run cosmic-ray baseline -h
for some insight. And of course I'd be delighted if you (or anyone) wants to add a little blurb about baseline to the docs.
I've executed cosmic-ray against
python-ecdsa
(with pytest) and was surprised that it achieved 100% kill rate.but upon closer inspection, this was caused by the fact that pytest didn't like the setup:
with the following .toml file:
maybe the runner should validate the sanity of environment (by executing the test suite from the new location but with no changes) before declaring the mutants killed?
this is with
cosmic-ray==5.6.1