You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add test coverage reporting and enforcement to our build process. This will help us maintain and improve code quality by ensuring adequate test coverage across the project.
Goals
Integrate JaCoCo with our Gradle build
Generate comprehensive test coverage reports
Enforce minimum coverage thresholds
Make reports easily accessible to developers
Implementation Details
Add JaCoCo plugin to root build.gradle file
Configure JaCoCo for all subprojects
Set up aggregate report generation
Define coverage thresholds (suggest starting with 70% instruction coverage)
Integrate coverage checks into our CI/CD pipeline
Specific Tasks
Update root build.gradle to include JaCoCo configuration
Create a jacocoTestReport task for each subproject
Create a jacocoRootReport task for aggregate reporting
Set up jacocoTestCoverageVerification with appropriate rules
Update CI configuration to run coverage checks and fail builds if thresholds aren't met
Determine how/where to publish reports (e.g., as build artifacts)
Update documentation to explain how to run and interpret coverage reports
Next Steps
Review and adjust proposed implementation details
Assign developer(s) to the task
Plan for gradual increase of coverage thresholds over time
Additional Notes
We should consider excluding certain packages or classes if they're not suitable for unit testing
We should discuss strategies for rolling this out without disrupting development (e.g., setting specific coverage requirement per module instead of global)
Overview
We need to add test coverage reporting and enforcement to our build process. This will help us maintain and improve code quality by ensuring adequate test coverage across the project.
Goals
Implementation Details
build.gradle
fileSpecific Tasks
build.gradle
to include JaCoCo configurationjacocoTestReport
task for each subprojectjacocoRootReport
task for aggregate reportingjacocoTestCoverageVerification
with appropriate rulesNext Steps
Additional Notes
Resources
The text was updated successfully, but these errors were encountered: