Offline intrumental exec to Sonarqube

15 views
Skip to first unread message

Wilson Ng

unread,
Aug 28, 2019, 12:54:10 AM8/28/19
to JaCoCo and EclEmma Users
Hi,

      I am having external testing (outside maven) and would like to collect code coverage data. I inject the jacoco agent in our JVM(s) and collected the dumps (exec file) thru server mode. I use the jacoccli to combine all exec files. How can I generate a single aggregated report and upload to Sonarqube from our maven multi modules project ?

       I tried to use the jacococli to generate the xml report but since this is a multi module projects while they have duplicate class name, I cannot generate a single xml report. 


Regards,
Wilson

Marc Hoffmann

unread,
Aug 28, 2019, 1:36:15 AM8/28/19
to JaCoCo and EclEmma Users
Hi Wilson,

I don’t know how to upload to Sonarqube but these are the options to generate the report:

1) Generate reports with jacococli separately for every module
2) Generate reports with JaCoCo Maven goal "report" separately for every module
3) Generate one structured report with Maven goal “report-aggregate” or with Ant task “report”

In all cases you can supply the combined exec file as input.

Regards,
-marc

--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e61c1aad-0e71-43a9-8862-225b2cad82a5%40googlegroups.com.

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