-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tox to run tests on multiple versions of python
Running tests with tox [1] has some advantages: - Running tests with multiple versions of python is simple. - Proper package installation is tested as well. So for example the presence of README.rst when setup.py is run can only be guaranteed when this file is packaged with pygbif. tox will discover issues like this. [1] https://pypi.python.org/pypi/tox
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
|
||
# Build output | ||
/build/ | ||
|
||
.tox | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include *.rst *.md LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tox] | ||
envlist = | ||
py34,py27 | ||
|
||
[testenv] | ||
commands = | ||
python setup.py develop | ||
nosetests --with-coverage --cover-package=pygbif | ||
deps = | ||
nose | ||
coverage | ||
|
||
[testenv:py34] | ||
basepython = python3.4 | ||
|
||
[testenv:py27] | ||
basepython = python2.7 |