coverage moved to results target in src/Makefile
This commit is contained in:
parent
047458dcf6
commit
47adb16ccc
12
src/Makefile
12
src/Makefile
|
@ -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..."
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
from msspec.tests import create_tests_results
|
||||
create_tests_results()
|
Loading…
Reference in New Issue