How can I filter a few methods to be analysed for code coverage

Viewed 1579

I using Jacoco as code-coverage plugin configured inside my pom.xml. I want to test and analyse coverage of only a few methods from my class file and want to show coverage percentage accordingly for them only. But as jacoco analyse whole file it shows less coverage, though the methods concerned are covered 100%. Is there any way out in jacoco to exclude some methods being analysed without changing source file code?

2 Answers
Related