Add tests to 100% coverage to Python

This commit is contained in:
2022-12-05 10:55:15 +01:00
parent 54edd95e5b
commit 00453f628b
4 changed files with 56 additions and 43 deletions

View File

@@ -10,13 +10,14 @@ clean: ## Clean up
if [ -d fimdlp/testcpp/lcoverage ]; then rm -fr fimdlp/testcpp/lcoverage/* ; fi;
test:
python -m unittest -v fimdlp.tests
coverage run -m unittest -v fimdlp.tests
cd fimdlp/testcpp && ./test
coverage:
if [ -d fimdlp/testcpp/build/CMakeFiles ]; then rm -fr fimdlp/testcpp/build/CMakeFiles/* ; fi;
make test
cd fimdlp/testcpp && ./cover
coverage report -m
lint: ## Lint and static-check
black fimdlp