Enhance tests coverage and report output

This commit is contained in:
2024-04-30 14:00:24 +02:00
parent b4a222b100
commit 3c7382a93a
947 changed files with 376596 additions and 3921 deletions

View File

@@ -122,13 +122,13 @@ coverage: ## Run tests and generate coverage report (build/index.html)
@$(gcovr) $(f_debug)/tests
@echo ">>> Building report..."
@cd $(f_debug)/tests; \
$(lcov) --directory . --capture --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --directory CMakeFiles --capture --ignore-errors source,source --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --remove coverage.info '/usr/*' --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --remove coverage.info 'lib/*' --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --remove coverage.info 'libtorch/*' --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --remove coverage.info 'tests/*' --output-file coverage.info >/dev/null 2>&1; \
$(lcov) --remove coverage.info 'bayesnet/utils/loguru.*' --ignore-errors unused --output-file coverage.info >/dev/null 2>&1
@$(genhtml) $(f_debug)/tests/coverage.info --output-directory html >/dev/null 2>&1;
@$(genhtml) $(f_debug)/tests/coverage.info --demangle-cpp --output-directory html >/dev/null 2>&1;
@$(MAKE) updatebadge
@echo ">>> Done";