Exclude test sources and generated artifacts from the coverage report
- new_docker_build.sh: after the lcov extract step, a --remove step drops the unit/smoke test sources (unit-test/, UnitTests/, tests/, *unit_test*) and the generated build artifacts (qt6-after/build/ autogen and moc files), so the report measures production code only (122 files instead of 197). - README.md: document the exclusions in Step 6.
This commit is contained in:
1 parent
2f82acd7e0
commit
363bde9a0e
2 files changed
+14
-1
No files matched your search
@@ -267,7 +267,10 @@ The report is written to
|
||||
the tree:
|
||||
|
||||
- `html/index.html` — browser report (line + branch coverage)
|
||||
- `coverage.info` — lcov tracefile, filtered to `qt-migration-legatus/*`
|
||||
- `coverage.info` — lcov tracefile: production code only. Test sources
|
||||
(`unit-test/`, `UnitTests/`, `tests/`, `*unit_test*`) and generated
|
||||
build artifacts (`qt6-after/build/` autogen/moc) are removed after the
|
||||
extract step.
|
||||
- `coverage_summary.txt` — totals (line / branch hit rate)
|
||||
|
||||
Source paths inside `coverage.info` and the html report are rewritten
|
||||
|
||||
Reference in new issue
Block a user