-
Notifications
You must be signed in to change notification settings - Fork 29
[MOB-10999] - JaCoCo Reporting and Codecov #892
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
base: master
Are you sure you want to change the base?
Conversation
1. Adding codecov yml 2. Uncommented test and coverage related tasks in build.yml 3. Gradle on both api and api-ui now have task defined for jacoco reporting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds configuration for Codecov reporting and enables Jacoco reporting tasks for both the API and API-UI projects via Gradle and GitHub Actions. The key changes include:
- Introducing a new .codecov.yml configuration file with coverage, parser, ignore, and comment settings.
- Updating the GitHub Actions workflow to uncomment and extend Jacoco reporting and Codecov upload steps.
- Adding a fallback Codecov uploader using bash.
Reviewed Changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
.github/workflows/build.yml | Updated Gradle command to run Jacoco tasks and added Codecov integration. |
.codecov.yml | Added detailed Codecov configuration settings. |
Files not reviewed (2)
- iterableapi-ui/build.gradle: Language not supported
- iterableapi/build.gradle: Language not supported
Comments suppressed due to low confidence (1)
.github/workflows/build.yml:49
- [nitpick] The step name 'Test' may be misleading as it now runs Jacoco report generation tasks rather than executing tests. Consider renaming the step to 'Generate Jacoco Reports' to more clearly reflect its functionality.
run: ./gradlew :iterableapi:jacocoTestDebugUnitTestReport :iterableapi-ui:jacocoTestDebugUnitTestReport :app:jacocoDebugTestReport
Another way to reference token
Enabling gradle cache along with specifying the emulator with 4gb memory
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #892 +/- ##
=============================================
- Coverage 61.40% 22.47% -38.93%
- Complexity 0 148 +148
=============================================
Files 75 74 -1
Lines 4705 4810 +105
Branches 535 549 +14
=============================================
- Hits 2889 1081 -1808
- Misses 1515 3594 +2079
+ Partials 301 135 -166 see 60 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🔹 Jira Ticket(s) if any
✏️ Description