]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Added standalone test command
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 27 Jul 2013 10:36:23 +0000 (12:36 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 27 Jul 2013 10:36:23 +0000 (12:36 +0200)
.gitignore
Makefile
tox.ini

index af3746cf46275d24a1d123a882684f65aa8c7d5c..7effb2fcc1e95703a36a291ec81fc41565d5f6ce 100644 (file)
@@ -8,6 +8,7 @@ build
 dist
 .DS_Store
 .tox
+test-env
 **/__pycache__
 babel/global.dat
 tests/messages/data/project/i18n/long_messages.pot
index 5b0b7033254da1b8d2082e1d62f3f04ac845ab41..66768979a1a764eb18f75a93d4bb99184c547d5e 100644 (file)
--- 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 0059112fcc2c093ef27aeda377ab3ebdb84a9d4e..0605f536a671c155f3ae49a6df2a40b445525cc1 100644 (file)
--- 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