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

On Monday, January 28, 2019 at 3:55:57 PM UTC+5:30, Evgeny Mandrikov wrote:
>
>
>
> 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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/484ff626-ecb2-4ec7-a4e8-de270d21239b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to