Now using tox to run tests against multiple versions of Python in one go.
This commit is contained in:
parent
ee5697ac37
commit
715b240589
5 changed files with 18 additions and 6 deletions
|
@ -2,3 +2,4 @@ syntax: glob
|
|||
*.egg-info
|
||||
*.pyc
|
||||
*.swp
|
||||
.tox
|
||||
|
|
5
NEWS
5
NEWS
|
@ -1,8 +1,9 @@
|
|||
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.
|
||||
* Added a troubleshooting section with steps to deal with broken pipes.
|
||||
* Added nosetests config file (setup.cfg) with defaults.
|
||||
* Troubleshooting section with steps to deal with broken pipes.
|
||||
* Nosetests config file (setup.cfg) with defaults.
|
||||
|
||||
0.0.3
|
||||
|
||||
|
|
|
@ -90,13 +90,13 @@ If you'd like to see the available command-line arguments, view the help:
|
|||
|
||||
## 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
|
||||
|
|
2
test_requirements.txt
Normal file
2
test_requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
flexmock==0.9.7
|
||||
nose==1.3.4
|
8
tox.ini
Normal file
8
tox.ini
Normal file
|
@ -0,0 +1,8 @@
|
|||
[tox]
|
||||
envlist=py27,py34
|
||||
skipsdist=True
|
||||
|
||||
[testenv]
|
||||
usedevelop=True
|
||||
deps=-rtest_requirements.txt
|
||||
commands = nosetests
|
Loading…
Reference in a new issue