From: Yujun Zhang Date: Thu, 24 Nov 2016 01:58:02 +0000 (+0800) Subject: Allow select test case to run X-Git-Tag: danube.1.0~170 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F24797%2F1;p=qtip.git Allow select test case to run - remove hardcoded argument `tests` from tox.ini - use command like `tox tests/unit/runner` for selective running - `tox` without argument will run all test in `tests` folder Change-Id: I3916dc571e85c785f83813aa30c5bb0ef9a65cd6 Signed-off-by: Yujun Zhang --- diff --git a/tox.ini b/tox.ini index d955416c..f5859b6e 100644 --- a/tox.ini +++ b/tox.ini @@ -10,17 +10,17 @@ skipsdist = True [testenv] usedevelop = True install_command = pip install -U {opts} {packages} -deps = +deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= py.test \ --basetemp={envtmpdir} \ - {posargs} tests + {posargs} [testenv:pep8] deps = flake8 -commands = flake8 {toxinidir} +commands = flake8 {toxinidir} [flake8] # H803 skipped on purpose per list discussion.