Use tox for tests

This commit is contained in:
Jakub Warmuz
2014-11-22 15:04:36 +01:00
parent 1c643d483e
commit 300a4f0b45
4 changed files with 17 additions and 1 deletions
+1
View File
@@ -3,4 +3,5 @@
build/
dist/
venv/
.tox/
m3
+1 -1
View File
@@ -24,7 +24,7 @@ conf layout.
#. Bootstrap: `./venv/bin/python setup.py dev`
#. Test code base: `./venv/bin/nosetests`
#. Test code base: `./venv/bin/tox`
#. Check coding style for the whole project `./venv/bin/pylint letsencrypt`,
or specific module, e.g. `./venv/bin/pylint letsencrypt.client.acme`.
+1
View File
@@ -15,6 +15,7 @@ testing_extras = [
'coverage',
'nose',
'pylint',
'tox>=1.6',
]
setup(
+14
View File
@@ -0,0 +1,14 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27
[testenv]
# install_command requires tox>=1.6
install_command = pip install --process-dependency-links {opts} {packages}
commands = nosetests
deps =
nose