Currently, I have generated jacoco.exec file (binary coverage report of my FTs)I am using jacococli.jar to convert jacoco.exec to html reportjava -jar jacococli.jar report jacoco.exec --classfiles build/classes/java/main --html FTReport/jacoco-report --name FTReportIs 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
PS: I could see there are options to exclude when using jacocoagent.jar and NOT while using jacococli.jar
Thanks for your reply.you can simply remove unwanted files from analyzed directory,So in my pipeline, the only option I could use is removing the classfiles to be excluded before running the stage to generate coverage.Also, the classDirectories option you were referring to - the parameter is to say what classes are to be included.In my case, there are lots of folders to include and only 2 folders to exclude - so this won't be fulfilling my need
Just curious: Will there be an enhancement in jacococli to exclude classes? Since it may be needed by anyone.
JaCoCo is maintained by volunteers in their free time. Since we cannot guarantee free capacity, we do not commit to particular release dates. Typically, you can expect a couple of releases every year.
In the change log, you can see all features that have been been implemented in master branch and will be available with the next release. And in the meantime you can test latest build of of master branch (Maven SNAPSHOT) and provide feedback to us.