From 86063dadaaca0bca141858b75fbf2b02bf81be9f Mon Sep 17 00:00:00 2001 From: David Winterbottom Date: Wed, 10 Apr 2013 11:40:13 +0100 Subject: [PATCH] Add make target for setting up test environment This commit replaces the 3 lines from the contributing instructions with a single make target. Only a tiny thing, but it's reduces the distance from zero to tests passing, which can only be a good thing in my book. --- Makefile | 5 +++++ docs/contributing.txt | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 598b837..1de3658 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docs/contributing.txt b/docs/contributing.txt index ceff111..d03e706 100644 --- a/docs/contributing.txt +++ b/docs/contributing.txt @@ -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