OBPIH-6649 Add support for Jacoco code coverage reporting#4933
OBPIH-6649 Add support for Jacoco code coverage reporting#4933
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4933 +/- ##
=========================================
Coverage ? 7.57%
Complexity ? 803
=========================================
Files ? 596
Lines ? 42170
Branches ? 10258
=========================================
Hits ? 3195
Misses ? 38512
Partials ? 463 ☔ View full report in Codecov by Sentry. |
|
The Codecov report comment here should be more interesting once we merge to develop and it has something to compare to. I still need to configure exactly what the comment displays (I want to make sure it does a diff on changed files and doesn't show the whole coverage) but I'll leave that for the next PR. |
awalkowiak
left a comment
There was a problem hiding this comment.
Overall, looks good to me. Can we get a list of all files that it looks into? Is it everything from the build/classes/groovy/main? Locally I see some changelogs there and taglibs. 5% coverage seems small? It kinda aligns with the ~5% that we had in the 0.8.x, but feels like we bumped up the coverage by at least a few percentage points recently? 🤔
|
@awalkowiak yeah everything under |

✨ Description of Change
Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-6649
Description: Generates a code coverage report using Jacoco whenever tests are run and then uploads them to Codecov when commits are pushed to PRs or when PRs are merged to develop.
Codecov dashboard: https://app.codecov.io/gh/openboxes/openboxes/
And this is what the raw HTML Jacoco reports that codecov is built from look like (we probably won't use these much except for local testing):
