http://csdl.ics.hawaii.edu/Tools/JBlanket/maven-plugin/
JBlanket is a method coverage tool for Java programs. It modifies the byte code to measure coverage during the execution of JUnit test cases.
Requiring a "green bar" when unit tests run is an easy policy to state and to measure. At the end of the day either all tests passed or not. Many have adopted that mantra. It's power is in its simplicity. Code coverage policy should be that simple.
Achieving a 100% coverage rate using a statement level tool usually requires large amounts of effort. Instead of a simple coverage policy, what usually evolves is the general acceptance of a coverage rate that's "high enough for us", or abandonment of coverage measures altogether. This easily leaves a wide net of functionality uncovered by automated tests. Intuitively, some code is worth more effort to test than others.
JBlanket strikes a great balance. It leverages the simplicity of the
"green bar" coverage policy by using simple heuristics to make the
coverage measure meaningful and practical. First, only method coverage
is measured. Second, you can choose to categorically ignore methods that
aren't worth the effort of testing -- like one-line methods. This makes
it easier to maintain 100% coverage, and keep up the culture of quality.
Then, statement level tools can help check specific classes or problem areas.
The plugin has been tested with Maven 1.0-rc3. It can be installed through Maven:
maven plugin:download -DartifactId=maven-jblanket-plugin -DgroupId=jblanket -Dversion=1.0.0503
Check out the documentation for how to enable JBlanket for your project
http://csdl.ics.hawaii.edu/Tools/JBlanket/maven-plugin/enable.html
Enjoy!
Tim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
