How to use the new filtering resource

60 views
Skip to first unread message

Quentin Caillard

unread,
Jun 2, 2017, 4:01:58 AM6/2/17
to JaCoCo and EclEmma Users

Hi everybody,

I'm trying to use the new filtering feature : https://github.com/jacoco/jacoco/pull/500 with the snapshot version of the plugin.

It seems not to work out of the box. Is there any configuration to add?

I don't find any documentation about filtering usage.

I really appreciate any help you can provide.

Evgeny Mandrikov

unread,
Jun 2, 2017, 8:26:36 AM6/2/17
to JaCoCo and EclEmma Users
Hi,

There is no need in additional configuration. Usage of a snapshot version is enough. However please note that
  • Filtering is performed at a time of report generation (creation of html, xml, etc), not at a time of collection of execution information (creation of exec file). So that currently available only for the native JaCoCo report produced by snapshot version of integrations provided by JaCoCo Team (Ant, Maven, CLI - see http://www.jacoco.org/jacoco/trunk/doc/integrations.html). Other tools that read execution data directly instead of reading of xml and create their own report (such as SonarQube, Jenkins, etc) will need to update their dependency on JaCoCo once it will be released in order to get filtering for reports. We will notify explicitly downstream projects (in particular all mentioned above) about this when our release will be done.
  • As per comment https://github.com/jacoco/jacoco/pull/500#issuecomment-296285412 some corner-cases of try-with-resources was not yet covered.
If the points above do not address your difficulty, then please provide minimalistic example demonstrating the problem.


Regards,
Evgeny

Quentin Caillard

unread,
Jun 2, 2017, 8:58:59 AM6/2/17
to jac...@googlegroups.com
I used SonarQube. That must be the reason why filtering didn't work.

Thanks for your explanation.

--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/GF-YJIPUuOg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e1ac5540-e6d3-4d1c-a6c0-489ee8c5c40c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages