-
Notifications
You must be signed in to change notification settings - Fork 52
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
Kover breaks Robolectric #89
Comments
I ran into a similar issue with an Android project where Kover broke tests using RobolectricTestRunner, but tests passed using the JUnit4 test runner instead. The project used Kover v0.4.4 and Robolectric 4.3. I verified it also repros on Robolectric 4.7.3 or using the
|
I ran into the same issue and I have added android {
// ....
testOptions {
unitTests.all {
jvmArgs '-noverify'
}
}
} it fixed the issue for me :) |
Hi,
Adding a |
It's a little weird that this is needed, but excluding these classes indeed works. |
If anyone is looking at this and using a Kotlin DSL build script this is what you need to write in the excludes configuration:
Note the excessive escaping especially around the |
Also note that for my project setup with Robolectric I had to use this exclusion:
|
Fixed in |
Tested on Kover 0.4.4:
Dependencies:
Test
When I run this, I get this exception:
When I run it without the kover plugin, it succeeds just fine.
The text was updated successfully, but these errors were encountered: