Pytest在特定配置中运行两次测试

时间:2015-05-11 06:31:05

标签: python-2.7 pytest

我srarted使用pytest。 我创建了测试环境:

my environment

当我使用不同选项运行pytest时,一切运行良好。例如在pytest.ini中:

  

addopts = -rxs --full-trace -v --color = yes --durations = 3 --junit-xml =" c:\ tmp \ log.xml"

但是当我想通过nodeID运行测试时,例如:

  

addopts = -vv Unit / Flows / test_my1.py :: TestClass1

pytest运行测试两次。 我怎么能避免这个?

0 个答案:

没有答案