Repository navigation
Conversation
|
Is this PR planned for next Jacoco release? This will allow us to focus more on Service testing. |
|
Hi @Godin, Is there anything I can do to move this PR forward? As mentioned in another thread, it was created with the following scenario in mind:
In our case, the issue with percentage-based code coverage quality gate is that it is often not clear where the non-covered code is (unless one go through the report in details) and people can often trick coverage (e.g. write tests for the trivial parts but ignore the important bit). Cheers. |
|
Upvoting this. Getting this out would be great. People are misusing lombok.generated to get this functionality (https://stackoverflow.com/questions/47824761/how-would-i-add-an-annotation-to-exclude-a-method-from-a-jacoco-code-coverage-re) |
|
@arouel I'm happy to spend time to update the PR and resolve the conflicts. However, given that this PR is from April 2018, I don't think the author is interested in this feature or intent to merge this PR. |
|
@philieu Thanks for this pull request! After internal discussions we decided that we will not support manual exclusion. We assume that this has a long tail of more feature requests and bugs:
|
|
@marchof Thanks for the message. I can understand where you are coming from. Anyway, thanks a lot for you and everyone's effort in building the tool. Much appreciated. |
This PR is to allow filter methods that are annotated with a class named ExcludeFromCodeCoverage. The Java package of the class is not important.
It will allow the end users the flexibility to create this annotation class themselves and use it to filter out methods from code coverage.
Ref. #14