[infra] Serve raw JaCoCo coverage reports (#7270)

Both the JaCoCo .exec file and the XML report are very useful for
automated analysis of coverage data and IDE integration, so serve them
just like the HTML report.
This commit is contained in:
Fabian Meumertzheim 2022-03-10 19:16:55 +01:00 committed by GitHub
parent 3067d305ee
commit 4261d526ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -281,6 +281,11 @@ elif [[ $FUZZING_LANGUAGE == "jvm" ]]; then
--classfiles $classes_dir \
"${sourcefiles_args[@]}"
# Also serve the raw exec file and XML report, which can be useful for
# automated analysis.
cp $jacoco_merged_exec $REPORT_PLATFORM_DIR/jacoco.exec
cp $xml_report $REPORT_PLATFORM_DIR/jacoco.xml
# Write llvm-cov summary file.
jacoco_report_converter.py $xml_report $SUMMARY_FILE