|
|
|
|
|
|
Re: Code coverage with JaCoCo Plugin (Jenkins) [message #1694710 is a reply to message #1693724] |
Thu, 07 May 2015 05:54  |
Eclipse User |
|
|
|
Hi,
As I understand, you've already managed to run test project on Jenkins and get test results (HTML-report etc.). But when you tried to add JaCoCo agent to VMArguments of AUT, tests run successfully but test.exec with code coverage results was empty (Zero bytes). Please correct me if I'm wrong.
Could you please attach HTML report from your Jenkins server? Did any test pass there?
You've mentioned that you have an error
RCPTT: Failed to Launch AUT: IncQueryAUT cause Process was terminated while waiting for AUT startup data
Could you please attach AUT console log with that error. Is this problem reproducible on Jenkins or in IDE?
Did you try to open JaCoCo report with EclEmma Coverage View in Eclipse with AUT sources?
I've done the following steps and it worked fine for me:
- Install EclEmma to Eclipse from http://update.eclemma.org/
- Download JaCoCo agent from here http://www.eclemma.org/jacoco/
- Extract file to some folder (for me it was /Users/username/codecoverage/jacoco-0.7.5-20150410.145015-6/lib/jacocoagent.jar)
- Import, Build my AUT Project and Run (So I have valid project in Eclipse workspace)
- Added to pom the following lines:
<aut>
<explicit>/Users/username/Downloads/rcptt-gerrit-47289</explicit>
<vmArgs>
<vmArg>-javaagent:/Users/username/Downloads/jacoco-0.7.5-20150410.145015-6/lib/jacocoagent.jar=destfile=/Users/username/test.exec</vmArg>
</vmArgs>
</aut>
- Run test job on Jenkins
- File -> Import -> Coverage Session -> Choose /Users/username/test.exec -> Select all sources
- See coverage details
Have you done the same steps? Please try and let me know what was the result.
Could you please attach test.exec after that?
[Updated on: Thu, 07 May 2015 05:54] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.10676 seconds