Now using tox to run tests against multiple versions of Python in one go.

This commit is contained in:
Dan Helfman 2015-03-15 10:14:30 -07:00
parent a5eda0d305
commit 5bc7c04cdf
5 changed files with 18 additions and 6 deletions

View file

@ -2,3 +2,4 @@ syntax: glob
*.egg-info *.egg-info
*.pyc *.pyc
*.swp *.swp
.tox

5
NEWS
View file

@ -1,8 +1,9 @@
0.0.4-dev 0.0.4-dev
* Now using tox to run tests against multiple versions of Python in one go.
* Helpful error message about how to create a repository if one is missing. * Helpful error message about how to create a repository if one is missing.
* Added a troubleshooting section with steps to deal with broken pipes. * Troubleshooting section with steps to deal with broken pipes.
* Added nosetests config file (setup.cfg) with defaults. * Nosetests config file (setup.cfg) with defaults.
0.0.3 0.0.3

View file

@ -90,13 +90,13 @@ If you'd like to see the available command-line arguments, view the help:
## Running tests ## Running tests
To install test-specific dependencies, first run: First install tox, which is used for setting up testing environments:
sudo python setup.py test pip install tox
To actually run tests, run: Then, to actually run tests, run:
nosetests tox
## Troubleshooting ## Troubleshooting

2
test_requirements.txt Normal file
View file

@ -0,0 +1,2 @@
flexmock==0.9.7
nose==1.3.4

8
tox.ini Normal file
View file

@ -0,0 +1,8 @@
[tox]
envlist=py27,py34
skipsdist=True
[testenv]
usedevelop=True
deps=-rtest_requirements.txt
commands = nosetests