[jboss-dev-forums] [JBoss AS 7 Development] - Code coverage of JBoss AS 7 testsuite, using JaCoCo - no data in jacoco.exec files
Ondrej Zizka
do-not-reply at jboss.com
Tue Jan 24 13:53:50 EST 2012
Ondrej Zizka [https://community.jboss.org/people/ozizka] created the discussion
"Code coverage of JBoss AS 7 testsuite, using JaCoCo - no data in jacoco.exec files"
To view the discussion, visit: https://community.jboss.org/message/648508#648508
--------------------------------------------------------------
I'm trying to get coverage of JBoss AS 7. Here's my branch:
https://github.com/OndraZizka/jboss-as/tree/TS-jacoco https://github.com/OndraZizka/jboss-as/tree/TS-jacoco
When I run `mvn clean install -rf testsuite -DallTests -Dcoverage -fae` I get (almost) empty `jacoco.exec` files - just some metadata (size is few bytes).
The JVM arg line used is:
|
| -javaagent:${jbossas.ts.dir}/target/jacoco-jars/agent/jacocoagent.jar=destfile=${basedir}/target/jacoco.exec,includes=${jboss.home}/modules/**/*,excludes=${basedir}/target/classes/**/*,append=true,output=file |
This line is passed to Arquillian to use to start JBoss AS 7.
The testsuite runs, the argument is passed (it appears in AS7's boot.log), but the resulting `jacoco.exec` file is only few bytes in size. The report of course shows no coverage.
What am I doing wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648508#648508]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120124/ad60fd25/attachment.html
More information about the jboss-dev-forums
mailing list