forked from orbit-oss/flask
Use tox from make test
This commit is contained in:
parent
ec9717502f
commit
a4ed3d2806
4 changed files with 9 additions and 8 deletions
7
Makefile
7
Makefile
|
|
@ -3,11 +3,8 @@
|
|||
all: clean-pyc test
|
||||
|
||||
test:
|
||||
pip install -r test-requirements.txt -q
|
||||
FLASK_DEBUG= py.test tests examples
|
||||
|
||||
tox-test:
|
||||
tox
|
||||
pip install -r test-requirements.txt
|
||||
tox -e py-release
|
||||
|
||||
audit:
|
||||
python setup.py audit
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ universal = 1
|
|||
license_file = LICENSE
|
||||
|
||||
[tool:pytest]
|
||||
norecursedirs = .* *.egg *.egg-info env* artwork docs examples
|
||||
norecursedirs = .* *.egg *.egg-info env* artwork docs
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
pytest
|
||||
tox
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -4,9 +4,13 @@ envlist = {py26,py27,pypy}-{lowest,release,devel}{,-simplejson}, {py33,py34,py35
|
|||
|
||||
|
||||
[testenv]
|
||||
passenv = LANG
|
||||
usedevelop=true
|
||||
commands =
|
||||
py.test [] --cov=flask --cov-report html
|
||||
# We need to install those after Flask is installed.
|
||||
pip install -e examples/flaskr
|
||||
pip install -e examples/minitwit
|
||||
py.test --cov=flask --cov-report html []
|
||||
deps=
|
||||
pytest
|
||||
pytest-cov
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue