Add doc for tox.

This commit is contained in:
Ignacio Fiorentino 2016-07-28 17:18:11 -03:00
parent 6e771ad5ee
commit 3f12db6930

View file

@ -7,7 +7,7 @@ We love contributions, so please feel free to fix bugs, improve things, provide
* Fork the project. * Fork the project.
* Make your feature addition or bug fix. * Make your feature addition or bug fix.
* Add tests for it inside ``oidc_provider/tests``. Then run all and ensure everything is OK (read docs for how to test in all envs). * Add tests for it inside ``oidc_provider/tests``. Then run all and ensure everything is OK (read docs for how to test in all envs).
* Send pull request to the specific version branch. * Send pull request to the specific version branch.
Running Tests Running Tests
@ -15,8 +15,12 @@ Running Tests
Use `tox <https://pypi.python.org/pypi/tox>`_ for running tests in each of the environments, also to run coverage among:: Use `tox <https://pypi.python.org/pypi/tox>`_ for running tests in each of the environments, also to run coverage among::
# Run all tests.
$ tox $ tox
# Run a particular test file with Python 2.7 and Django 1.9.
$ tox -e py27-django19 oidc_provider.tests.test_authorize_endpoint
If you have a Django project properly configured with the package. Then just run tests as normal:: If you have a Django project properly configured with the package. Then just run tests as normal::
$ python manage.py test --settings oidc_provider.tests.app.settings oidc_provider $ python manage.py test --settings oidc_provider.tests.app.settings oidc_provider