Skip to content

Commit

Permalink
update tox & makefile for py.test
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Oct 26, 2012
1 parent f0deed1 commit fa5af28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest
pytest-cov
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa5af28

Please sign in to comment.