Files
deb-python-wrapt/docs/testing.rst
2014-08-19 22:17:28 +10:00

921 B

Running Unit Tests

Unit tests are located in the tests directory.

To test both the pure Python and C extension module based implementations, run the command:

tox

By default tests are run for Python 2.6, 2.7, 3.3, 3.4 and PyPy, with and without the C extensions.

py26-without-extensions
py27-without-extensions
py33-without-extensions
py34-without-extensions

py26-with-extensions
py27-with-extensions
py33-with-extensions
py34-with-extensions

pypy-without-extensions

If wishing to run tests for a specific Python combination you can run tox with the -e option.

tox -e py33-with-extensions

If adding more tests and you need to add a test which is Python 2 or Python 3 specific, then end the name of the Python code file as _py2.py or _py3.py appropriately.

For further options refer to the documentation for tox.