add coverage report

This commit is contained in:
Antoine Legrand 2017-06-20 11:30:27 +02:00
parent 90ed0c28be
commit 851686dd0b
7 changed files with 58 additions and 18 deletions

View file

@ -40,12 +40,20 @@ conf/stack/license: $(QUAY_CONFIG)/local/license
mkdir -p conf/stack
ln -s $(QUAY_CONFIG)/local/license conf/stack/license
unit:
TEST=true PYTHONPATH="." py.test --timeout=3600 --verbose -x ./
unit-test:
TEST=true PYTHONPATH="." py.test \
--cov="." --cov-report=html --cov-report=term-missing \
--timeout=3600 --verbose -x \
./
registry-test:
TEST=true PYTHONPATH="." py.test \
--cov="." --cov-report=html --cov-report=term-missing \
--timeout=3600 --verbose --show-count -x \
test/registry_tests.py
test: unit-test registry-test
test: unit test/registry_tests.py
TEST=true PYTHONPATH="." py.test --timeout=3600 --verbose --show-count -x \
test/registry_tests.py
PG_PASSWORD := quay
PG_USER := quay