coverage moved to results target in src/Makefile

This commit is contained in:
Sylvain Tricot 2019-11-29 18:06:59 +01:00
parent 047458dcf6
commit 47adb16ccc
2 changed files with 7 additions and 7 deletions

View File

@ -23,16 +23,14 @@ pybinding:
results: pybinding
@echo "Generating results for unittests"
@python -c "from msspec.tests import create_tests_results; create_tests_results()" $(SUPPRESS_OUPUT)
@coverage run --source=./ --omit=msspec/es/*,msspec/msspecgui/* msspec/create_tests_results.py 1>/dev/null
# create the html coverage report
@coverage html -d ../doc/source/htmlcov
@rm .coverage
tests: pybinding
@echo "Runing unittests"
# @python -c "from msspec.tests import run_tests; run_tests()" 1>/dev/null
@coverage run --source=./ --omit=msspec/es/*,msspec/msspecgui/* msspec/tests.py 1>/dev/null
# create the html coverage report
# @mv .coverage ../doc/source
@coverage html -d ../doc/source/htmlcov
@rm .coverage
@python -m msspec.tests 1>/dev/null
clean:
@echo "Cleaning all..."

View File

@ -0,0 +1,2 @@
from msspec.tests import create_tests_results
create_tests_results()