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)

-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
+# Tox ( 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.
+envlist = py27, py32
+commands = {envpython} -m unittest discover
+deps =
+    mock
+    numpy