Skip to content

Commit 0f326f3

Browse files
committed
Added section to explain how to run the tests locally.
1 parent 0b0a465 commit 0f326f3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/contributing.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ comment about the test results to the pull requests. Alternatively you
111111
can also login at Travis and enable your fork to run there, too. See the
112112
`Travis documentation`_ to read about how to do that.
113113

114+
Alternatively, create a virtualenv and activate it, then install the
115+
requirements **in the virtualenv**::
116+
117+
$ virtualenv compressor_test
118+
$ source compressor_test/bin/activate
119+
(compressor_test) $ pip install -e .
120+
(compressor_test) $ pip install -r requirements/tests.txt
121+
(compressor_test) $ pip install Django
122+
123+
Then run ``make test`` to run the tests. Please note that this only tests
124+
django_compressor in the Python version you've created the virtualenv with
125+
not all the versions that are required to be supported.
126+
114127
Contributing Documentation
115128
--------------------------
116129

0 commit comments

Comments
 (0)