mkjensen / danish-media-license

App for Android TV that provides access to videos available to everyone that pays the Danish media license
Apache License 2.0
3 stars 0 forks source link

Upgrade to Gradle 2.13 to avoid Robolectric/JaCoCo bug #14

Closed mkjensen closed 8 years ago

mkjensen commented 8 years ago

This issue tracks upstream bugs https://github.com/gradle/gradle/pull/575#issuecomment-189957212, https://github.com/jacoco/jacoco/pull/288#issuecomment-192321883, https://github.com/robolectric/robolectric/issues/2230#issuecomment-181265957.

Basically, a bug in Gradle/JaCoCo/Robolectric prevent code coverage from working. The current fix implemented in config/jacoco.gradle is to perform some hacks that enable the use of an old version of JaCoCo. These hacks should be removed ASAP.

mkjensen commented 8 years ago

Invalid since I have removed Robolectric in favor of classic instrumentation tests using Espresso in https://github.com/mkjensen/danish-media-license/commit/3a273bdc28328c6853d50490a2f9ab359d6c0b58. I don't have much experience with Robolectric but at the moment I don't think it helps me as much (faster tests) as it slows me down because of issues I don't understand.