summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2013-07-27 12:36:23 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2013-07-27 12:36:23 +0200
commit8a98dd8b239abfd6b9eafceaa83980b03b82041b (patch)
treeea3079da8ca16d143e6efd4740f946004555f6b3
parent4a1c33d364a5116d00bd373ab26bcb4d1f4822d7 (diff)
downloadbabel-8a98dd8b239abfd6b9eafceaa83980b03b82041b.tar.gz
Added standalone test command
-rw-r--r--.gitignore1
-rw-r--r--Makefile12
-rw-r--r--tox.ini2
3 files changed, 12 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index af3746c..7effb2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ build
dist
.DS_Store
.tox
+test-env
**/__pycache__
babel/global.dat
tests/messages/data/project/i18n/long_messages.pot
diff --git a/Makefile b/Makefile
index 5b0b703..6676897 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
test: import-cldr
- @py.test
+ @py.test tests
+
+create-test-env:
+ @virtualenv test-env
+ @test-env/bin/pip install pytest
+ @test-env/bin/pip install --editable .
+
+standalone-test: import-cldr create-test-env
+ @test-env/bin/py.test tests
clean: clean-cldr clean-pyc
@@ -32,4 +40,4 @@ upload-docs:
release:
python scripts/make-release.py
-.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean release upload-docs
+.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean release upload-docs create-test-env standalone-test
diff --git a/tox.ini b/tox.ini
index 0059112..0605f53 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,4 +5,4 @@ envlist = py26, py27, pypy, py33
deps =
pytz
pytest
-commands = py.test []
+commands = py.test tests