Use pytest plugin for collectingg coverage info
This commit is contained in:
parent
29869c710f
commit
62bd558ba7
14
Makefile
14
Makefile
|
@ -1,23 +1,17 @@
|
||||||
# Some simple testing tasks (sorry, UNIX only).
|
# Some simple testing tasks (sorry, UNIX only).
|
||||||
|
|
||||||
FLAGS=
|
|
||||||
|
|
||||||
|
|
||||||
flake:
|
flake:
|
||||||
flake8 aiohttp_security tests
|
flake8 aiohttp_security tests
|
||||||
|
|
||||||
|
|
||||||
test: flake
|
test: flake
|
||||||
py.test -s $(FLAGS) ./tests/
|
py.test -s -q ./tests/
|
||||||
|
|
||||||
vtest: flake develop
|
vtest: flake
|
||||||
py.test -s -v $(FLAGS) ./tests/
|
py.test -s ./tests/
|
||||||
|
|
||||||
cov cover coverage: flake
|
cov cover coverage: flake
|
||||||
@coverage erase
|
py.test -s ./tests/ --cov=aiohttp_security --cov=tests --cov-report=html --cov-report=term
|
||||||
@coverage run -m py.test -s $(FLAGS) tests
|
|
||||||
@coverage report
|
|
||||||
@coverage html
|
|
||||||
@echo "open file://`pwd`/coverage/index.html"
|
@echo "open file://`pwd`/coverage/index.html"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
-e .
|
-e .
|
||||||
flake8
|
flake8
|
||||||
pytest
|
pytest
|
||||||
|
pytest-cov
|
||||||
coverage
|
coverage
|
||||||
sphinx
|
sphinx
|
||||||
alabaster>=0.6.2
|
alabaster>=0.6.2
|
||||||
|
|
Loading…
Reference in New Issue