Issues with Jacoco/Tycho and Test plugins

58 views
Skip to first unread message

Srini Gorur

unread,
Apr 24, 2017, 2:55:29 AM4/24/17
to JaCoCo and EclEmma Users

Hello guys,

I am trying to get jacoco to analyse my code coverage for an eclipse plugin project and have been trying various things suggested on atleast the first 2 pages of Google search :)

Here's my problem:
I have an eclipse plugin and have written a test plugin to run unit tests using jUnit for the plugin. Have followed what This Page says and the tests indeed get kicked off and work well. Now, I have gotta get Jacoco to analyse my Code Coverage but the jacoco.exec is getting generated anywhere, and am going in circle finding solution to my problems. 

I have attached 2 of my pom.xmls (where the major machanics are happening) The smaller one is the root pom and the larger one's my tycho.configuration's pom.

I have also attached my console output when I run:
mvn clean install -Dtycho.testArgLine="-Dcscbridge.properties=../../bundles/com.tfsc.ilabs.core.csc.bridge/cscbridge.properties" -PcodeCoverage

Any help would mean a lot!

Thanks,
Srini
pom.xml
pom.xml
output.txt

Evgeny Mandrikov

unread,
Apr 24, 2017, 12:49:31 PM4/24/17
to JaCoCo and EclEmma Users
Hi,

First of all log indicates usage of a very old version of JaCoCO - please use latest one.

Secondly reading of XMLs without ability to run and hence reproduce and fully understand your difficulty is IMO not very productive. Especially that POMs have declaration of one JaCoCo version, but log also contains executions of another version - please don't mix versions.

All in all please have a look on a runnable example of usage of JaCoCo with Tycho that is third link from a Google Search by words "tycho jacoco" - https://github.com/LorenzoBettini/tycho-multiproject-jacoco-report-example/tree/master/example.parent


HTH,

Evgeny
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages