From f3c2df8464ec51e14b902c4826fa4d5ef5679bac Mon Sep 17 00:00:00 2001 From: baztian Date: Sun, 12 Mar 2017 20:35:52 +0100 Subject: [PATCH] Allow tox command overriding. Thanks to @ionelmc for https://blog.ionelmc.ro/2015/04/14/tox-tricks-and-patterns/ --- README_development.rst | 4 ++++ tox.ini | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README_development.rst b/README_development.rst index 995cfd8..84966e0 100644 --- a/README_development.rst +++ b/README_development.rst @@ -29,6 +29,10 @@ Setup test requirements # run tests for all supported envs tox + # execute stuff on specific env (examples) + tox -e py3-driver-mock -- python + tox -e py3-driver-mock -- python test/testsuite.py test_mock.MockTest.test_sql_exception_on_commit + # activate and work on specific env . .tox/py35-driver-mock/bin/activate export CLASSPATH=$VIRTUAL_ENV/javalib/* diff --git a/tox.ini b/tox.ini index 5e2bec4..3496e17 100644 --- a/tox.ini +++ b/tox.ini @@ -33,4 +33,4 @@ commands = driver-mock: mvn -Dmaven.repo.local={toxworkdir}/shared/.m2/repository -f mockdriver/pom.xml install driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT driver-hsqldb: python test/doctests.py - coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME} + {posargs:coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME}}