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

Setup test coverage with jacoco/codecov #6

Open
1 of 2 tasks
cortinico opened this issue Apr 25, 2020 · 9 comments
Open
1 of 2 tasks

Setup test coverage with jacoco/codecov #6

cortinico opened this issue Apr 25, 2020 · 9 comments
Labels
good first issue Good for newcomers

Comments

@cortinico
Copy link
Owner

⚠️ Is your feature request related to a problem? Please describe

Add support for code coverage

💡 Describe the solution you'd like

Ideally we could setup jacoco + codecov to have an automated test report after every push/pr.

🤚 Do you want to develop this feature yourself?

  • Yes
  • No

This feature is up for grab

@cortinico cortinico added the good first issue Good for newcomers label Apr 25, 2020
@nikhil-thakkar
Copy link

nikhil-thakkar commented May 25, 2020

I did something like this just a while back. I used the this plugin to generate Jacoco reports.
This would be a small change. I did it in my own repo here. Let me know if you want me to work on this.

@cortinico
Copy link
Owner Author

cortinico commented May 25, 2020

I did something like this just a while back. I used the this plugin to generate Jacoco reports.
This would be a small change. I did it in my own repo here. Let me know if you want me to work on this.

Hey @nikhil-thakkar
Thanks for the suggestion. Ideally this should be doable by just using the jacoco Gradle plugin without other third party Gradle plugin.

@tonghannteng
Copy link

tonghannteng commented Sep 9, 2020

Are you able to generate code coverage with Git Actions? @cortinico @matthewcmckenna

@cortinico
Copy link
Owner Author

Not yet, this issue is up for grab 👍

@trietbui85
Copy link

@anandwana001
Copy link

@cortinico

  1. Does jacoco for test files tell only about the lines covered or just the test status(passing/failing/ignored)?
  2. How does Android Studio's test coverage is different then Jacoco

Tried adding jacoco in one of the projects I am working on.

Android Studio Test Coverage


@cortinico
Copy link
Owner Author

@cortinico

  1. Does jacoco for test files tell only about the lines covered or just the test status(passing/failing/ignored)?
  2. How does Android Studio's test coverage is different then Jacoco

How is this related to this issue? You should probably ask on StackOverflow, Twitter or on Jacoco's issue tracker.

@anandwana001
Copy link

I put this intentionally here just to understand the requirement of the issue.
Are we looking for a line to line code coverage here or just code coverage for test files for test results?

@cortinico
Copy link
Owner Author

Are we looking for a line to line code coverage here or just code coverage for test files for test results?

The best would be to have a coverage report for the library- modules that consumer can integrated with their own tool (say codecov or others).

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

No branches or pull requests

5 participants