Add Ensemble tests

This commit is contained in:
2024-04-08 19:09:51 +02:00
parent d12a779bd9
commit a1178554ff
7 changed files with 242 additions and 97 deletions

View File

@@ -103,7 +103,6 @@ coverage: ## Run tests and generate coverage report (build/index.html)
viewcoverage: ## Run tests, generate coverage report and upload it to codecov (build/index.html)
@echo ">>> Building tests with coverage..."
@folder=`pwd` ;
@$(MAKE) coverage
@echo ">>> Building report..."
@cd $(f_debug)/tests; \
@@ -113,7 +112,7 @@ viewcoverage: ## Run tests, generate coverage report and upload it to codecov (b
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.*' --output-file coverage.info >/dev/null 2>&1; \
genhtml coverage.info --output-directory $(f_debug)/tests/coverage >/dev/null 2>&1;
genhtml coverage.info --output-directory coverage >/dev/null 2>&1;
@$(MAKE) updatebadge
@xdg-open $(f_debug)/tests/coverage/index.html || open $(f_debug)/tests/coverage/index.html 2>/dev/null
@echo ">>> Done";