Skip to content

Commit

Permalink
coverage: dont collect coverage of test files
Browse files Browse the repository at this point in the history
Ignore coverage files of all files that contain test in the path
  • Loading branch information
danctorres committed Feb 4, 2025
1 parent 6623dce commit 353d6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/coverage/lcov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ main() {
--remove "${OUTPUT_DIR}/baseline.info" \
'/usr/*' \
'*external/*' \
'*gtest*' \
'*test*' \
--ignore-errors unused \
--ignore-errors empty \
--ignore-errors source \
Expand All @@ -151,7 +151,7 @@ main() {
--remove "${OUTPUT_DIR}/tests.info" \
'/usr/*' \
'external/*' \
'*gtest*' \
'*test*' \
--ignore-errors unused \
--ignore-errors source \
--output-file "${OUTPUT_DIR}/tests_filtered.info"
Expand Down

0 comments on commit 353d6a1

Please sign in to comment.