update tox & makefile for py.test

This commit is contained in:
benoitc 2012-10-26 21:07:27 +02:00
parent f0deed1529
commit fa5af28cf6
3 changed files with 7 additions and 8 deletions

View File

@ -1,15 +1,13 @@
build:
virtualenv --no-site-packages .
bin/python setup.py develop
bin/pip install coverage
bin/pip install nose
bin/pip install -r requirements_dev.txt
test:
bin/nosetests
./bin/py.test tests/
coverage:
bin/nosetests --with-coverage --cover-html --cover-html-dir=html \
--cover-package=gunicorn
./bin/py.test --cov gunicorn tests/
clean:
@rm -rf .Python bin lib include man build html

View File

@ -1 +1,2 @@
pytest
pytest-cov

View File

@ -4,8 +4,8 @@
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, pypy
envlist = py26, py27, py33, pypy
[testenv]
commands = nosetests
deps = nose
commands = py.test tests/
deps = pytest