From 47adb16cccce1ea9331d4dde64f03ec86237be52 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Fri, 29 Nov 2019 18:06:59 +0100 Subject: [PATCH] coverage moved to results target in src/Makefile --- src/Makefile | 12 +++++------- src/msspec/create_tests_results.py | 2 ++ 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 src/msspec/create_tests_results.py diff --git a/src/Makefile b/src/Makefile index 3f8c536..66bcebc 100644 --- a/src/Makefile +++ b/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..." diff --git a/src/msspec/create_tests_results.py b/src/msspec/create_tests_results.py new file mode 100644 index 0000000..d0bdd30 --- /dev/null +++ b/src/msspec/create_tests_results.py @@ -0,0 +1,2 @@ +from msspec.tests import create_tests_results +create_tests_results()