Can I prevent mutants which mypy kills?
See original GitHub issueI have many “false” surviving mutants like this one:
This mutant would be killed by mypy
in the CI pipeline. However, it survives as I only run pytest -m "not slow" -x
and pytest -m "not slow " && mypy app/
does not work. I’ve also tried pytest -m "not slow" --mypy -x
, but that runs mypy over the tests
as well which fails / makes each run pretty slow.
Do you have any suggestions what I could do?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
More powerful whitelisting system · Issue #47 · boxed/mutmut
I can't help but feel that needing to achieve 100% killed mutants will always be an endless game of whack-a-mole that isn't worth...
Read more >Mutmut - Ned Batchelder
I thought that mutmut run again would clear the mutant from the results, but the only way I could find to clear it...
Read more >Using Type Analysis for Dealing with Incompetent Mutants in ...
Abstract: Mutation testing of dynamically typed languages, such as Python, raises problems in mutant introduction and evaluation of mutant execution results ...
Read more >How Good are Your Types? - Oregon State University
and the Python type checker Mypy [34]. For twitter-graph, we measured the number of mutants killed by the type checker over a range...
Read more >python/typing - Gitter
Mutants undetected by the test suite show which parts of code need better tests, and the more mutants are "killed", the better the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@boxed I think I’ve heard you mention this on a podcast recently. I need to remember that one in future 😄 (btw: Thank you for talking about it in a podcast / putting that much time and effort in Open Source projects ❤️ )
@pedernot you should absolutely add -x to the pytest call. There is no need to run any more tests if a test has already failed.