Skip to content

Commit

Permalink
HDDS-11538. Let coverage report link to java sources (apache#7280)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Oct 16, 2024
1 parent 2139367 commit 860e269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hadoop-ozone/dev-support/checks/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ find target/coverage-classes -type d \( -name proto -or -name proto3 -or -name g
| xargs rm -rf

#generate the reports
jacoco report "$REPORT_DIR/jacoco-all.exec" --classfiles target/coverage-classes --html "$REPORT_DIR/all" --xml "$REPORT_DIR/all.xml"
src=$(find hadoop-* -path '*/src/main/java' | sed 's/^/--sourcefiles /g' | xargs echo)
jacoco report "$REPORT_DIR/jacoco-all.exec" $src --classfiles target/coverage-classes --html "$REPORT_DIR/all" --xml "$REPORT_DIR/all.xml"

0 comments on commit 860e269

Please sign in to comment.