Mutation Testing with Python

Test the tests — automatically, by applying common mistakes

Martin Thoma
Aug 10, 2020 · 7 min read

We need to kill the mutants — no, I’m not a villain from the X-Men comics. I’m a software engineer who wants to improve unit tests.

In this article you will learn what mutation testing is and how it can help you to write better tests. The examples are for Python, but the concepts hold in…