pytest如何在junitxml中构造“classname”属性的值?你知道吗
例如,更改运行测试的工作目录似乎会对“classname”属性产生影响。你知道吗
示例:
在~/test_pytest/A/AA/a.py
中有一个测试。你知道吗
我使用pytest ~/test_pytest/A/AA/a.py --junitxml=b
运行它
当我从~/test_pytest
运行它时,junitxml包含<testcase classname="A.AA.a" file="A/AA/a.py" line="1" name="test_tt" time="0.000">
当我从/tmp
运行它时,junitxml包含<testcase classname="a" file="a.py" line="1" name="test_tt" time="0.000">
目前没有回答
相关问题 更多 >
编程相关推荐