Merge pull request #387 from codeinthehole/make-target-for-testenv

Add make target for setting up test environment
This commit is contained in:
Jannis Leidel
2013-05-27 07:57:15 -07:00
2 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
testenv:
pip install -e .
pip install -r requirements/tests.txt
pip install Django
test:
flake8 compressor --ignore=E501,E128
coverage run --branch --source=compressor `which django-admin.py` test --settings=compressor.test_settings compressor

View File

@@ -116,9 +116,7 @@ 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
(compressor_test) $ make testenv
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