I am talking about the real 'Test Completeness', not the traditional 'Code Coverage',because Code Coverage is not very helpful when people start asking for more accurate estimations.
And by 'Test Completeness' I mean that (virtually) ALL possible usages of a function are covered, including Border conditions of the arguments, etc.
There is another Stackoverflow thread discussing this topic, but no java tool is mentioned in it. Is there a good measure of completeness of Unit tests
Is there such as tool that can take a look at the current JUnit Tests and tell me approximately the percentage of completeness?
Thanks.
Have a search for Mutation Testing. An example is http://pitest.org/. Basically it changes your code and reruns the tests (like x == true changes to x == false), if your tests don't fail when the change is made then your tests are insufficient.
I think you are referring to a "white-box" tester. There is a commercial program called JTest but I've never used it myself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With