Unable to run jacoco code coverage tool

66 views
Skip to first unread message

jai.a...@gmail.com

unread,
Apr 19, 2017, 7:23:44 PM4/19/17
to JaCoCo and EclEmma Users
I have a maven project (https://github.com/yahoo/pulsar/) and I want to run code coverage on it.

I ran the command mvn test -Pcoverage jacoco:prepare-agent jacoco:report on the main project pom file, but the report is not generated. Instead, I get a info saying

[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-test) @ pulsar-discovery-service ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (default-cli) @ pulsar-discovery-service ---
[INFO] argLine set to -javaagent:/home/jai1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/home/jai1/pulsar/pulsar-discovery-service/target/jacoco.exec
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (default-cli) @ pulsar-discovery-service ---
[INFO] Skipping JaCoCo execution due to missing execution data file.


Can someone suggest how can I generate the code coverage report with this pom file. I am using apache-maven-3.3.9 and testNG.


http://stackoverflow.com/questions/43507482/unable-to-run-jacoco-code-coverage-tool?noredirect=1#comment74069799_43507482

Evgeny Mandrikov

unread,
Apr 20, 2017, 9:41:27 AM4/20/17
to JaCoCo and EclEmma Users, jai.a...@gmail.com
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages