-
1. Re: Code Coverage in JBoss AS Test Suite
shelly.mcgowan Dec 20, 2006 1:45 PM (in response to ryan.campbell)The lastest version of EMMA - 2.1.5320 - introduces a new command line tool called ctl which allows coverage data to be captured remotely and prior to JVM exit. This works well in J2EE environments and is intended for such. Instrumentation still needs to be done prior to running tests (referred to as off-line mode) using EMMAs tool - instr. See:
http://emma.sourceforge.net/faq.html#q.runtime.appservers
which documents the few easy steps. I recently used EMMA to capture coverage data in J2EE environment but found it to be more useful when obtaining coverage metrics against a standalone component (.jar) to enhance the coverage as I developed tests. -
2. Re: Code Coverage in JBoss AS Test Suite
pavel.tsekov Dec 22, 2006 3:48 PM (in response to ryan.campbell)As I understand it the best way to capture coverage data in J2EE environments is by using offline instrumentation - custom class loaders won't work very well and as such runtime patching of the bytecode is not useful.
I want to start testing EMMA and Clover on some real code from the JbossAS 4.2 testsuite - would you recommend any particular tests that I should test the code coverage tools with ? The testsuite is quite big but it is split in different categories. I'd like to get one test of each category and try the tools on it, but it's not easy for me to pick the right tests. -
3. Re: Code Coverage in JBoss AS Test Suite
pavel.tsekov Dec 27, 2006 10:55 AM (in response to ryan.campbell)After smcgowan's comment I took a look at emma 2.1.5320 - I usually prefer to go with released code that's why I looked at 2.0.5312 first. What struck me is the fact that "2.1.5320" which is tagged "emma-testing" is year and a half old. I took the time to look at the emma forums at sf.net and the project's cvs repository. It seems like the project is not actively developed - the most recent changes in the CVS repository seem to be 10 months old. Also some of the comments on the forums indicate that the project is not being actively developed. In particular:
http://sourceforge.net/forum/forum.php?thread_id=1483955&forum_id=373867
http://sourceforge.net/forum/forum.php?thread_id=1536441&forum_id=373865
Nevertheless, emma looks to be a very good tool. I hope to come with
some real test results soon. -
4. Re: Code Coverage in JBoss AS Test Suite
ryan.campbell Dec 29, 2006 2:00 PM (in response to ryan.campbell)If you haven't selected some tests to focus on, you could try tests-jacc-security.