Require - exclude some methods and exclude some code of lines in a method
-
Which things have you tried that have not worked for you?chrylis -cautiouslyoptimistic-– chrylis -cautiouslyoptimistic-2022-05-18 17:05:12 +00:00Commented May 18, 2022 at 17:05
-
worked exclude method, <configuration> <excludes> <exclude>**/*Sample.class</exclude> </excludes> </configuration> But want to exclude some specified lines in methodsKushani Karunarathne– Kushani Karunarathne2022-05-18 17:13:42 +00:00Commented May 18, 2022 at 17:13
Add a comment
|
1 Answer
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
jacocodemoin it is package are included except if they havejacocodemo/stringsin 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>