Yes I saw that too.
And the Merge command has the ability to copy from one exec to another.
It would be ideal to add a new arg --exclude to this command that takes a regex or glob and excludes any matching package names. That way as the final merged .exec file is being created, it simply strips out those packages from *all* the incoming exec files and so the final outgoing file is clean.
Note if you only name one incoming exec file then this is equivalent to the "strip" command, i.e. I get two for one.
Sorry, but then what is exactly not clear about API for you?
It would be ideal to add a new arg --exclude to this command that takes a regex or glob and excludes any matching package names. That way as the final merged .exec file is being created, it simply strips out those packages from *all* the incoming exec files and so the final outgoing file is clean.If you are trying to interest others by this, then IMO you should elaborate(explain) more about why(when) this is(can be) useful for others?
Are you trying to exclude classes from report? Note that zeros will be shown in a report that is generated for classes not presented in execution data - this is equivalent to the case when class was not executed at all.
Note if you only name one incoming exec file then this is equivalent to the "strip" command, i.e. I get two for one.In addition to unclear goal, mix of "strip" on two, "merge" and "exclude" IMO look misleading and error-prone in use.
In any case I believe that you can do all of these operations using API after careful reading of javadocs and examples.
Hi John,
I don't think filtering the exec file will give you the expected result: If you remove probes for certain classes from exec files these classes will still show with 0% coverage in the coverage report.
The scope of the coverage report is not determined by the classes in the exec file, but by set of classes provided to the report task. So simply exclude unwanted classes during report generation.
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/50864b4a-f5f2-418a-8c00-f6a288587a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.