Added section to explain how to run the tests locally.

This commit is contained in:
Jannis Leidel
2012-08-03 14:23:07 +02:00
parent 0b0a465bca
commit 0f326f345c

View File

@@ -111,6 +111,19 @@ comment about the test results to the pull requests. Alternatively you
can also login at Travis and enable your fork to run there, too. See the
`Travis documentation`_ to read about how to do that.
Alternatively, create a virtualenv and activate it, then install the
requirements **in the virtualenv**::
$ virtualenv compressor_test
$ source compressor_test/bin/activate
(compressor_test) $ pip install -e .
(compressor_test) $ pip install -r requirements/tests.txt
(compressor_test) $ pip install Django
Then run ``make test`` to run the tests. Please note that this only tests
django_compressor in the Python version you've created the virtualenv with
not all the versions that are required to be supported.
Contributing Documentation
--------------------------