Hello,
        I have a problem in generating coverage report where I will get 
coverage always 0%. (jacoco.exec file size is 0KB).
I have added these in setenv.bat file of JOnAS server.

set 
JACOCO_PROPERTIES=-javaagent:c:/tools/lib/jacocoagent.jar=destfile=c:/temp/jacoco.exec,output=file,address=,includes=com.*
Set JAVA_OPTS=%JAVA_OPTS%  %JACOCO_PROPERTIES%

when the server is starting the jacoco.exec file generates.

I am doing these steps to generate the report:
1) mvn install
2) deploy ear to JOnAS
3) I run my test
4) Stop  JOnAS to get jacoco.exec
5) I build the report thanks jacoco api.

Q1) If I run *offline *(using maven plugin) I got the coverage for the test 
classes which is in src/test/java package. But the problem here is most of 
my test 
classes are in separate module ( with package src/main/java). So when I do *mvn 
install* the test classes in package src/main/java wont run. Is it possible 
to update the jacoco.exec file after *mvn install*?
Q2)I can run the test classes which is in package src/main/java, but I want 
to run this after deploying to JOnAS so that I will get the current code 
which is install on the server.
Is it possible to update the jacoco.exec of the particular module when 
running the test.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to