From 3f12db69303245393c9a1f16d074ae4c81b92061 Mon Sep 17 00:00:00 2001 From: Ignacio Fiorentino Date: Thu, 28 Jul 2016 17:18:11 -0300 Subject: [PATCH] Add doc for tox. --- docs/sections/contribute.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/sections/contribute.rst b/docs/sections/contribute.rst index fd153c7..2811551 100644 --- a/docs/sections/contribute.rst +++ b/docs/sections/contribute.rst @@ -7,7 +7,7 @@ We love contributions, so please feel free to fix bugs, improve things, provide * Fork the project. * 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. Running Tests @@ -15,8 +15,12 @@ Running Tests Use `tox `_ for running tests in each of the environments, also to run coverage among:: + # Run all tests. $ 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:: $ python manage.py test --settings oidc_provider.tests.app.settings oidc_provider