Merge pull request #387 from codeinthehole/make-target-for-testenv
Add make target for setting up test environment
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,3 +1,8 @@
|
|||||||
|
testenv:
|
||||||
|
pip install -e .
|
||||||
|
pip install -r requirements/tests.txt
|
||||||
|
pip install Django
|
||||||
|
|
||||||
test:
|
test:
|
||||||
flake8 compressor --ignore=E501,E128
|
flake8 compressor --ignore=E501,E128
|
||||||
coverage run --branch --source=compressor `which django-admin.py` test --settings=compressor.test_settings compressor
|
coverage run --branch --source=compressor `which django-admin.py` test --settings=compressor.test_settings compressor
|
||||||
|
@@ -116,9 +116,7 @@ requirements **in the virtualenv**::
|
|||||||
|
|
||||||
$ virtualenv compressor_test
|
$ virtualenv compressor_test
|
||||||
$ source compressor_test/bin/activate
|
$ source compressor_test/bin/activate
|
||||||
(compressor_test) $ pip install -e .
|
(compressor_test) $ make testenv
|
||||||
(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
|
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
|
django_compressor in the Python version you've created the virtualenv with
|
||||||
|
Reference in New Issue
Block a user