This is an Android App used to introduce Unit Test Coverage for Android project.
The project is using Jacoco to generate code coverage report, Github Actions run and upload coverage report to Codecov. Codecov provides different features, like Source Code Coverage, Pull Request Comments, Status Checks, Badges, Report Merging, GitHub Checks and etc. Take a look at different PRs to see how it works during code review.
Add Jacoco plugin and dependency, and then create a jacocoReport task in build.gradle, run the following command to generate coverage reports which can be found in project's dir: app/build/reports/jacoco
.
./gradlew jacocoReport
This is used to generate jacoco report in your android studio, you don't have to do anything if you only view it in codecov, because it runs in github workflow
Github Actions is used to run the jacocoReport
and upload report to codecov, you can find the workflows file in jacoco.yml
Signup account in codecov and add your repo into codecov account. Where you can find detailed coverage report based on projet, Commits, Branches, Pull Requests, Diff and etc.
View Detailed Report in Github with sourcegraph
The source code for the site is licensed under the MIT license, which you can find in the LICENSE file.