Require - exclude some methods and exclude some code of lines in a method
Asked
Active
Viewed 530 times
0
-
Which things have you tried that have not worked for you? – chrylis -cautiouslyoptimistic- May 18 '22 at 17:05
-
worked exclude method,
**/*Sample.class
1 Answers
3
As mentioned in the comment, use the exclude/include
as part of your configuration.
Here is an example.
Below is an example in which, all classes which has
jacocodemo
in it is package are included except if they havejacocodemo/strings
in them.
<execution>
<id>jacoco-report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<includes>
<include>**/jacocodemo/**/*</include>
</includes>
<excludes>
<exclude>**/jacocodemo/strings/*</exclude>
</excludes>
</configuration>
</execution>

Sampada Dubey
- 359
- 2
- 6