Hello,
For me these 2 above steps are generating the same results. Is it proper 
thing to do to get exec file without any exclusions and then applying 
everything at the report stage?

On Wednesday, June 28, 2023 at 3:36:36 PM UTC+5:30 Mehul Parmar wrote:

> Hello,
> Thank you for confirming this. Also help with my frst doubt. Doing these 
> two things create same coverage result ?
>
>
> 1. Using jacoco-maven-plugin and excluding classes from config and then 
> generating report - 
> <groupId>org.jacoco</groupId>
> <artifactId>jacoco-maven-plugin</artifactId>
> <version>0.8.10</version>
> <configuration>
> <excludes>
> <exclude>com/abc/xyz/samples/impl/**/*</exclude>
> </excludes>
> </configuration>
>
>
> 2. Generating a Jacoco exec without any exclusion and then not including 
> classFiles(com/abc/xyz/samples/impl/**/*) while generating report. 
>
>
> On Wednesday, June 28, 2023 at 2:57:52 PM UTC+5:30 Evgeny Mandrikov wrote:
>
>> Also I created following ticket 
>> https://github.com/jacoco/jacoco/issues/1490
>>
>> On Wednesday, June 28, 2023 at 11:03:07 AM UTC+2 Evgeny Mandrikov wrote:
>>
>>  
>>
>> On Tuesday, June 27, 2023 at 10:49:36 PM UTC+5:30 Mehul Parmar wrote:
>>
>> 2. Generating a Jacoco exec without any exclusion and then applying 
>> exclusion from the command line. 
>>
>> java -jar /path/to/jacoco-cli.jar report jacoco.exec --classfiles 
>> /path/to/classes --html /path/to/report --excludes='*'
>>
>> Also when I run the second command,  I noticed the exclusion is not 
>> applying and I am getting the complete report as it is in jacoco.exec. Then 
>> what is the point of giving exclusion in report command?
>>
>>
>> As you can see in the documentation at 
>> https://www.jacoco.org/jacoco/trunk/doc/cli.html
>> and as well by executing
>>
>> java -jar /path/to/jacoco-cli.jar report
>>
>> The command line interface has no such parameter as "--excludes".
>>
>> To exclude something using the command line interface remove it from the 
>> location specified by "--classfiles".
>>
>>

-- 
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/6d2ff7a7-9aa8-47bb-99fe-a162f993532en%40googlegroups.com.

Reply via email to