Skip to content

Commit

Permalink
Update merge_coverage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr authored Feb 19, 2025
1 parent f4a32ba commit 171658a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/merge_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# Create an array to store the report file names
declare -a report_files

ls

# Add report files to the array based on your naming pattern
for file in coverage__*.info; do
for file in **/coverage__*.info; do
report_files+=("--add-tracefile" "$file")
done

# Merge the reports
lcov "${report_files[@]}" --output coverage.info
lcov "${report_files[@]}" --output coverage.info

0 comments on commit 171658a

Please sign in to comment.