Is there a way to exclude a code block / a methods in the application code being evaluated for coverage.
I initial problem of mine associated with a code block with reflection, which triggers to fail the test because of the synthetic members of the jacoco.
I know that the code fix of check for the synthetic members will clear the issue, but I am currently not in a position to change the application code.
I have two options in mine, but not sure it is possible
[A] exclude the specific code block of the application (in the code bloc level or in the method level). This has to be done without a change in the application code.
[B] Exclude the test method being executed with Jacoco. Obviously moving the test in to a different test suite(which do not run code coverage ) is an option , I am interested in more ides.
I am running my test test on JUnit, Build using ant, and code coverage by Jenkins Jacoco plugin.