rewrite portmapping functional test
[transportpce.git] / tests / tox.ini
index 368ca4b90d4d06b855a838678ad449fa19d05ece..36bec9de0fc88d42f9a1885c4173a9043a5583a0 100644 (file)
@@ -3,21 +3,14 @@ envlist = py27
 
 [testenv]
 usedevelop = True
+basepython = python2.7
 deps =
   -r{toxinidir}/requirements.txt
   -r{toxinidir}/test-requirements.txt
 whitelist_externals = bash
 commands =
   bash -c "(cd .. && mvn clean install -DskipTests -Dmaven.javadoc.skip=true)"
-  ./build.sh
-  nosetests --with-xunit transportpce_tests
-
-[testenv:servicehandler]
-usedevelop = True
-deps =
-  -r{toxinidir}/requirements.txt
-  -r{toxinidir}/test-requirements.txt
-whitelist_externals = bash
-commands =
-  bash -c "(cd .. && mvn clean install -DskipTests -Dmaven.javadoc.skip=true)"
-  nosetests --with-xunit transportpce_tests/test_servicehandler.py
+  {py27,portmapping}: ./build.sh
+  py27: nosetests --with-xunit transportpce_tests/
+  portmapping: nosetests --with-xunit transportpce_tests/test_portmapping.py
+  servicehandler: nosetests --with-xunit transportpce_tests/test_servicehandler.py