【发布时间】:2019-04-04 10:15:08
【问题描述】:
我想从构建或管道中跳过或排除某些特定测试。
我正在运行nosetests -s -v *,它在某个特定文件夹下运行所有测试。
假设有大约30 tests 和5 我想跳过- 为此我正在尝试
nosetests -s -v * --exclude-test test_sometest.py test_somemoretest.py
或
nosetests -s -v * -- test_sometest.py test_somemoretest.py
但它们都对我不起作用。
#!/bin/sh
cd tests/engine_tests/measures
nosetests -s -v * --exclude-test test_sometest1.py test_somemoretest2.py test_sometest3.py test_somemoretest4.py
任何帮助都会很棒!
【问题讨论】:
-
不工作。任何帮助!!!
标签: shell command-line build pipeline nose