Verbose Logging

software development with some really amazing hair

T + S G I F R

Archives for 3/2013

manbearpig: Mutation Testing for Go

· Posted in Programming
Mutation testing isn't about testing your code, but about improving your tests. What happens is the testing tool looks through your source code for instances of some known thing. This usually something easily tweaked, like ==. For each instance, it changes it to some opposite value that makes sense. In the case of ==, we can change it to !=. For each single change it makes, it runs the tests. The idea is that the tests should fail. If they don't…