[
https://issues.jboss.org/browse/JBTM-952?page=com.atlassian.jira.plugin.s...
]
Paul Robinson commented on JBTM-952:
------------------------------------
Comments from Max Anderson regarding Emma:
{quote}
I haven't tried on Java 7 but I know emma got reviewed via the eclemma project which
in the end rewrote the logic to be much better and gave birth to Jacoco -
http://www.eclemma.org/jacoco/index.html
Worth a shot.
Doesn't have all of the nice tooling integration but apparently is much faster and
more reliable than emma.
{quote}
And another:
{quote}
btw. I bumped into Marc Hoffman yesterday (the guy behind jacoco and eclemma) and jacoco
is fully compatible with Java 7 (only "glitch" he knew of is handling invoke
dynamic instructions - but that is on its way)
jacoco is actually a remarkable code coverage framework - the optimizations and tricks he
is doing compared to older emma and other coverage tools are rather amazing.
There is no extra build step its all done at runtime and with very little overhead and he
has gone through great lengths to able to coexist in different environments (osgi, jee,
etc.) and even gone to so great lengths as not requiring any API or jar libraries on the
class path by using "evil" tricks like using Object.equals() as a way to
communicate back to the agent to avoid any class cast/loading issues.
Only gotcha we found is that if you have used maven-injection-plugin to alter your code
(i.e. jboss modules and hibernate libraries does this) the resulting class files have
incorrect debug pointers and that throws his instrumentation via ASM off base - but he is
looking into handling those broken class files too.
{quote}
I've looked at the JaCoCo website and it seems to only support Eclipse, stating that
we should use Emma if we wnat to run from Ant or Maven. I've added a forum post to
clarify the situation:
https://sourceforge.net/projects/eclemma/forums/forum/614870/topic/4834596
Run code coverage for XTS in Hudson
-----------------------------------
Key: JBTM-952
URL:
https://issues.jboss.org/browse/JBTM-952
Project: JBoss Transaction Manager
Issue Type: Task
Security Level: Public(Everyone can see)
Reporter: Paul Robinson
Assignee: Paul Robinson
Fix For: 5.0.0.Final
Run for interop, unit and crash recovery tests.
May need to upgrade to Emma's successor. Apparently, this tool (I forget the name)
adds little overhead, so maybe we can enable it for all test runs?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira