Update makefile to run coverage when tests fail

This commit is contained in:
Roman Mogylatov 2021-02-12 09:15:49 -05:00
parent b376836150
commit 9677701626

View File

@ -55,7 +55,7 @@ test-py2: build
test: build test: build
# Unit tests with coverage report # Unit tests with coverage report
coverage erase coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*py3*.py -coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*py3*.py
coverage report --rcfile=./.coveragerc coverage report --rcfile=./.coveragerc
coverage html --rcfile=./.coveragerc coverage html --rcfile=./.coveragerc