Skip to content

Commit

Permalink
move coverage files based on project dirs to enable codecov flags
Browse files Browse the repository at this point in the history
  • Loading branch information
chakru-r committed Jan 9, 2025
1 parent 030f940 commit 89d2bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/coverage/java-coverage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ afterEvaluate {
Tools that aggregate and analyse coverage tools search for the coverage result files. Keeping them under one
folder will minimize the time spent searching through the full source tree.
*/
outputLocation = rootProject.layout.buildDirectory.file("coverage-reports/jacoco-${project.name}.xml")
outputLocation = rootProject.layout.buildDirectory.file("coverage-reports/${rootProject.relativePath(project.projectDir)}/jacoco-${project.name}.xml")
}
csv.required = false
html.required = false
Expand Down
2 changes: 1 addition & 1 deletion gradle/coverage/python-coverage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ext.get_coverage_args = { test_name = "" ->
Tools that aggregate and analyse coverage tools search for the coverage result files. Keeping them under one folder
will minimize the time spent searching through the full source tree.
*/
def base_path = "${rootProject.buildDir}/coverage-reports"
def base_path = "${rootProject.buildDir}/coverage-reports/${rootProject.relativePath(project.projectDir)}/"

/*
--cov=src was added via setup.cfg in many of the python projects but for some reason, was not getting picked up
Expand Down

0 comments on commit 89d2bd2

Please sign in to comment.