3 ms·
If you're a Java programmer and want to have a rude awakening, go download Jester. Jester is an automated mutation testing tool—it goes in and replaces “<=” wit
by dschobel 17y ago
If you're a Java programmer and want to have a rude awakening, go download Jester. Jester is an automated mutation testing tool—it goes in and replaces “<=” with “<”, “&&” with “||”, “!” with whitespace. And then it re-runs the tests. And then you get to watch in horror as your tests still all pass, regardless of what the product code actually does.
I've always wanted to write a unit-test testing library which inverts all of the assertions to catch the false positives.
This sounds like it's a lot more sadistic (and useful) though.
- gruseom 17y agoThat is indeed a devilishly clever idea.
- petercooper 17y agoA tip for Rubyists.. there's a library that does stuff like this: http://ruby.sadi.st/Heckle.html http://ruby.sadi.st/Heckle.html
- bbest86 17y agoWould be interesting to automatically run something like this and find a way to assert that the tests should fail. Almost an automated test of your tests.
- ZeroGravitas 17y agoUnless I'm misunderstanding something, that is what these type of tools do.