Bug P3
Status Update
Comments
pr...@google.com <pr...@google.com>
gg...@google.com <gg...@google.com>
ae...@google.com <ae...@google.com> #2
This bug has not been updated since 2022. If this is still occurring please reopen this bug.
Description
I want to use jacoco to get code coverage, and I've read from documentation that jacoco is used when set testCoverageEnabled true in buildType.
However, when instrumenting one of the classes in the task jacoco[Flavor]Debug, it logs error that "Method code too large" , so I want to exclude it when instrumenting.
I have tried to exclude it in testOptions like below:
But this cannot work.
I found from Documentation that only version can be controlled in JacocoOptions, so how can I exclude the class when instrumenting?