diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-24 09:58:02 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-24 09:58:02 +0800 |
commit | e68b001e4aaf5375a2c8e8bd081c2e6bb35bd6a5 (patch) | |
tree | 27101b61030a51fae22e883fe821414432c40d99 /tox.ini | |
parent | 8bc628a0e6821984780ad05688eb6649e1733c65 (diff) |
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 <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |