I seek a method written in Java that tests a method with as greater code coverage as possible. Meaning, I want to know how can I count a number of instructions executed by this method in Java.
How do I do it?
Please provide your practical inputs.
I seek a method written in Java that tests a method with as greater code coverage as possible. Meaning, I want to know how can I count a number of instructions executed by this method in Java.
How do I do it?
Please provide your practical inputs.
If your question is how to work out how much of your code was covered by your tests, then google for java code coverage tools.
There are many out there, both commercial and opensource. I've used Clover and Emma in the past.