On Sunday, January 27, 2019 at 10:41:13 AM UTC+1, rsiva wrote: > > Currently, I have generated jacoco.exec file (binary coverage report of my > FTs) > > I am using *jacococli.jar* to convert jacoco.exec to html report > > *java -jar jacococli.jar report jacoco.exec --classfiles > build/classes/java/main --html FTReport/jacoco-report --name FTReport* > > > Is there an option to exclude certain classes in the above command? > I see no such option in the Jacococli page under 'report' section in > https://www.jacoco.org/jacoco/trunk/doc/cli.html >
This page documents all available options, and so you don't see, because there is no such. As a workaround you can simply remove unwanted files from analyzed directory, or copy wanted files to directory for analysis. Also seems that you use Gradle and Gradle JaCoCo Plugin has option to specify list of analyzed classes, despite its misleading name "classDirectories" - https://docs.gradle.org/5.0/dsl/org.gradle.testing.jacoco.tasks.JacocoReport.html#org.gradle.testing.jacoco.tasks.JacocoReport:classDirectories > PS: I could see there are options to exclude when using jacocoagent.jar > and NOT while using jacococli.jar > "excludes" option of agent has completely different semantic and purpose. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/fd7d0125-e7da-4c62-89f8-0f69dc8e0ae4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
