Your urinating friends might be interested in a handy tool for measuring coverage. In Java land Emma, Corbutura and Clover are by far the most common coverage tools.
Clover is the only tool that gives you per test coverage. That is, it tells you which test hit which class/method/statement/conditional. So you can see that the right test covered your if, rather than just any test. Check out the covererage report for Google-Guice.
Apologies for the blatant plug boys. now focus on your aim.
Check out mutation testing, it's a technique for testing the quality of your test suite. The principle is simple:
a) in the current state, all tests pass b) make an arbitrary modification to the code under test that breaks functionality c) if your tests still pass, they are lacking
Hey Dave,
ReplyDeleteYour urinating friends might be interested in a handy tool for measuring coverage. In Java land Emma, Corbutura and Clover are by far the most common coverage tools.
Clover is the only tool that gives you per test coverage. That is, it tells you which test hit which class/method/statement/conditional. So you can see that the right test covered your if, rather than just any test. Check out the covererage report for Google-Guice.
Apologies for the blatant plug boys. now focus on your aim.
Cheers,
Pete.
Check out mutation testing, it's a technique for testing the quality of your test suite. The principle is simple:
ReplyDeletea) in the current state, all tests pass
b) make an arbitrary modification to the code under test that breaks functionality
c) if your tests still pass, they are lacking
This comment has been removed by the author.
ReplyDelete