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: build:
virtualenv --no-site-packages . virtualenv --no-site-packages .
bin/python setup.py develop bin/python setup.py develop
bin/pip install coverage bin/pip install -r requirements_dev.txt
bin/pip install nose
test: test:
bin/nosetests ./bin/py.test tests/
coverage: coverage:
bin/nosetests --with-coverage --cover-html --cover-html-dir=html \ ./bin/py.test --cov gunicorn tests/
--cover-package=gunicorn
clean: clean:
@rm -rf .Python bin lib include man build html @rm -rf .Python bin lib include man build html

View File

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

View File

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