-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage tests do not work with Realm plugin and 7.2.0 of Gradle #6142
Comments
(record of conversation where we came to this conclusion) So realm and jacoco both put in transformers; i there's some specific statements in the realm docs that say "this plugin must come after this other one", i'm wondering if that's because of some ordering and we are a bit weird by dynamically adding jacoco (so adam> in our case it's the android plugin which instruments the code when testCoverageEnable true is applied Michael>
The line mentioned, Got the above message via: Not sure if it's a cause but it does point at the realm plugin, and the realm plugin does use the API (see https://www.mongodb.com/docs/realm/sdk/java/troubleshooting/#customize-dependecies-defined-by-the-realm-gradle-plugin . Not sure what that means though; perhaps some selective downgrading might help, as it used to work. adam> it's strange that this ends up ignoring/overriding the instrumented classes https://github.com/realm/realm-java/blob/master/realm-transformer/src/main/kotlin/io/realm/transformer/RealmTransformer.kt#L116 ; even stranger that it changes non realm classes 🤔 Michael> If i downgrade to 7.1.3 and keep using Realm, I get coverage reports |
realm/realm-java#7685 may also be an issue for us ; adam also reported we've had difficulties upgrading the Realm plugin (lack of upgrade might be the cause of the code coverage issues; or the gradle version might the cause of the realm plugin upgrade issues) |
downgrade included as part of #6141 |
We should downgrade gradle to 7.1.3 to handle this.
The text was updated successfully, but these errors were encountered: