DEV Community

Discussion on: Why code coverage is not a reliable metric

Collapse
 
conectionist profile image
conectionist

AFAIK, mutation testing implies tests that automatically modify (mutate) your code and checks how that affects/breaks existing functionality... Or something along those lines :D

However, it's only (fairly) easy to do for simple code. Realistic (i.e. complex) code requires a fair amount of AI for it to actually be useful.
That's the reason why it's not so popular.

But it would most certainly be a lot more useful than simple code coverage.

Collapse
 
vasilvestre profile image
Valentin Silvestre

You don't have to code anything, you just pass the test directory as an argument and the mutation testing test everything for you.

You have nothing to do ! It's not popular because test aren't so much and the process is long. Really long. It can take up to 20 minutes at first run.

Thread Thread
 
conectionist profile image
conectionist

That sounds neat.

Thread Thread
 
conectionist profile image
conectionist

I'm going to research about this subject a bit more.