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

Android tests generates 0% coverage #87

Closed
gerardoepitacio opened this issue Dec 5, 2021 · 3 comments
Closed

Android tests generates 0% coverage #87

gerardoepitacio opened this issue Dec 5, 2021 · 3 comments
Labels
Feature Feature request issue type

Comments

@gerardoepitacio
Copy link

gerardoepitacio commented Dec 5, 2021

I Added test to have a 100% coverage as an Android instrumentation tests "androidTest" folder.

This is a pretty common way to tests classes in Android, some of them are tested as Unit tests and some of them as Android Instrumented Test, It would be great that:
1- be able to have coverage from Android Tests
2- have a merged report from unit test tests in "test" folder and Android tests, tests in "androidTest" folder.
3- if it's a multi module project, it would be great to have a unified report for both unit Tests and Android tests for all modules.

image

Android project in (ignore module01 by now)
https://github.com/gerardoepitacio/KoverTest

running
./gradlew clean app:koverHtmlReport

generates a report in app/build/reports where
Screen Shot 2021-12-05 at 14 06 59

But all methods in RemoteDataProviderImpl.kt are tested.
Screen Shot 2021-12-05 at 14 07 32

@shanshin shanshin added the Feature Feature request issue type label Dec 14, 2021
@shanshin
Copy link
Collaborator

Duplicates #96

@shanshin
Copy link
Collaborator

Relates #43

@shanshin
Copy link
Collaborator

Closed as duplicate

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

No branches or pull requests

2 participants