Remix.run Logo
▲ layer8 an hour ago

I’m a bit skeptical of that approach. Tests can never catch all possible bugs, because tests can’t prove complete correctness of the code [0]. Only formal proofs can do that. Mutation testing therefore will always be able to come up with a new mutation that isn’t yet covered by the tests. So you will generally never have anything close to 100% mutation testing coverage, or even be able to express such a percentage.

It can still be useful for increasing test coverage in an interactive way, but the article doesn’t give any methodology to decide when enough is enough, or even for assessing the relative relevance of different mutations. So it’s a bit like poking around in the dark.

[0] except in the rare case that the possible inputs can be exhaustively enumerated in short finite time, such as testing a pure function taking a 32-bit integer as its sole input (2^32 possible inputs that can be enumerated)