Skip to content

Commit 617a895

Browse files
authored
chore: Add unit tests dir to code coverage excludes (#5803)
This change excludes unit test code from code coverage reporting.
1 parent 1af1048 commit 617a895

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ slack_app: false
3333

3434
ignore:
3535
- "src/test/"
36+
- "src/tests/"
3637
- "include/xrpl/beast/test/"
3738
- "include/xrpl/beast/unit_test/"

cmake/RippledCov.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ setup_target_for_coverage_gcovr(
3333
FORMAT ${coverage_format}
3434
EXECUTABLE rippled
3535
EXECUTABLE_ARGS --unittest$<$<BOOL:${coverage_test}>:=${coverage_test}> --unittest-jobs ${coverage_test_parallelism} --quiet --unittest-log
36-
EXCLUDE "src/test" "include/xrpl/beast/test" "include/xrpl/beast/unit_test" "${CMAKE_BINARY_DIR}/pb-xrpl.libpb"
36+
EXCLUDE "src/test" "src/tests" "include/xrpl/beast/test" "include/xrpl/beast/unit_test" "${CMAKE_BINARY_DIR}/pb-xrpl.libpb"
3737
DEPENDENCIES rippled
3838
)
3939

0 commit comments

Comments
 (0)