From: Armin Ronacher Date: Sat, 27 Jul 2013 10:36:23 +0000 (+0200) Subject: Added standalone test command X-Git-Tag: 1.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a98dd8b239abfd6b9eafceaa83980b03b82041b;p=thirdparty%2Fbabel.git Added standalone test command --- diff --git a/.gitignore b/.gitignore index af3746cf..7effb2fc 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 5b0b7033..66768979 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 0059112f..0605f536 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