mannodermaus / android-junit5

Testing with JUnit 5 for Android.
Apache License 2.0
859 stars 52 forks source link

Address binary-incompatible API change between Gradle 7&8 for output location of Jacoco reports #304

Closed mannodermaus closed 1 year ago

mannodermaus commented 1 year ago

Resolves #302. There is a binary incompatibility between Gradle 7 and 8 that changed the return type of outputLocation. Catch an error with the new method and fall back to a safe alternative.

First commit adds (failing) test cases, the second commit fixes the code. Extend the test infrastructure to allow test projects to toggle Jacoco on/off at will. Furthermore, allow some tests to only run from specific Gradle versions onwards