Skip to content

Commit 860e269

Browse files
authored
HDDS-11538. Let coverage report link to java sources (apache#7280)
1 parent 2139367 commit 860e269

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hadoop-ozone/dev-support/checks/coverage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ find target/coverage-classes -type d \( -name proto -or -name proto3 -or -name g
5353
| xargs rm -rf
5454

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

0 commit comments

Comments
 (0)