Allow select test case to run 97/24797/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 24 Nov 2016 01:58:02 +0000 (09:58 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 24 Nov 2016 01:58:02 +0000 (09:58 +0800)
- 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 <zhang.yujunz@zte.com.cn>
tox.ini

diff --git a/tox.ini b/tox.ini
index d955416..f5859b6 100644 (file)
--- 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.