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

Jacoco Unit Test code coverage is zero? #17

Open
The0ldM0nk opened this issue Oct 31, 2017 · 4 comments
Open

Jacoco Unit Test code coverage is zero? #17

The0ldM0nk opened this issue Oct 31, 2017 · 4 comments

Comments

@The0ldM0nk
Copy link

Hi,
I am trying to determine the code coverage but I am amazed to find that Jacoco plugin reports zero unit test coverage although a sizeable amount of unit tests exist.

Am I missing something here?

@The0ldM0nk The0ldM0nk changed the title Code coverage is zero? Jacoco Unit Test code coverage is zero? Oct 31, 2017
@hypeapps
Copy link
Owner

hypeapps commented Oct 31, 2017

Look at my question on stackoveflow: https://stackoverflow.com/questions/45350561/android-studio-3-kotlin-code-coverage

Run gradlew copyTestClasses then generate code coverage.

@The0ldM0nk
Copy link
Author

so I did a clean testDebug copyTestClasses createDebugCoverageReport

coverage report gets generated here: application/build/reports/coverage/debug/

still shows 0%

@hypeapps
Copy link
Owner

So I think generating code coverage report is still a problem with kotlin and Android Studio 3. I need to look at this.
I found: https://issuetracker.google.com/issues/64929213

@The0ldM0nk
Copy link
Author

The0ldM0nk commented Nov 1, 2017

After some tinkering I can see the jacoco prepared report for the ui sub-package but gradle plugin prepared coverage report is still 0%.
I will post back my findings after tinkering with coverage report 🛠

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

2 participants