Skip to content
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

Plugin fails when testCoverageEnabled = true #194

Open
tobiasKaminsky opened this issue May 12, 2021 · 4 comments
Open

Plugin fails when testCoverageEnabled = true #194

tobiasKaminsky opened this issue May 12, 2021 · 4 comments

Comments

@tobiasKaminsky
Copy link

I try to us this plugin instead of the old unsupported jacoco plugin.
https://github.com/nextcloud/android-library/pull/612/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7L16

Here you can see how I changed it.
But when running ./gradlew assemble or ./gradle tasks it fails with:

* What went wrong:
A problem occurred configuring root project 'android-library'.
> Could not create task ':testDebugUnitTest'.
   > java.lang.NullPointerException (no error message)

Stacktrace/info/debug does not help me.

@volkansahin45
Copy link

Same problem!

@tobiasKaminsky
Copy link
Author

In my case the problem was that the project structure is old. There is only one build.gradle and no sub folder for actual sourcecode (e.g. app).
Once I adapted to new structure it works.

@volkansahin45
Copy link

I had different modules with their own build gradle. Everthing seemed good until I set testcoveragenabled in one of the module build.gradle.

@williamblevins
Copy link

Ditto. Adding testCoverageEnabled true like in the README causing the task step to get skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants