Skip to content

Commit 41d8f70

Browse files
facontidavideclaude
andcommitted
Restrict coverage to include/ and src/ directories only
Anchor lcov extract patterns to */BehaviorTree.CPP/include/* and */BehaviorTree.CPP/src/* to avoid matching vendored 3rdparty code. Add codecov.yml with server-side ignore rules for 3rdparty, examples, sample_nodes, tests, and tools. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e1ed3a1 commit 41d8f70

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/cmake_ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686
--ignore-errors mismatch \
8787
--ignore-errors negative
8888
lcov --extract coverage.info \
89-
'*/include/*' \
90-
'*/src/*' \
89+
'*/BehaviorTree.CPP/include/*' \
90+
'*/BehaviorTree.CPP/src/*' \
9191
--output-file coverage.info \
9292
--ignore-errors unused
9393
lcov --list coverage.info

codecov.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
7+
ignore:
8+
- "3rdparty/**/*"
9+
- "examples/**/*"
10+
- "sample_nodes/**/*"
11+
- "tests/**/*"
12+
- "tools/**/*"

0 commit comments

Comments
 (0)