Commits

German Larrain committed 9ddbc8e

added 'tox' to run the test suite for Python 2.7 and 3.2

  • Participants
  • Parent commits 8484422

Comments (0)

Files changed (3)

 Tests
 -----
 
-To run the included test suite (provided you have ``mock`` installed):
+To run the included test suite you need more packages (``tox`` and ``mock``):
 
 .. code-block:: bash
 
-   ~/ars$ python -m unittest discover --verbose
-
-If the output is too verbose for your taste, remove the option ``--verbose``.
+   ~/ars$ pip install -r requirements_test.txt
+   ~/ars$ tox

File requirements_test.txt

 -r requirements.txt
 mock==1.0.1
+tox==1.5.0
+# 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 = py27, py32
+
+[testenv]
+commands = {envpython} -m unittest discover
+deps =
+    mock
+    numpy