pytest测试框架
常用参数:
-k参数:选择特定的测试用例
只执行含有add的测试用例: `pytest -vs -k 'add' pytest -vs -k 'TestCalc and not test_add_1'
--collect-only参数:只收集测试用例,先不执行
pytest --collect-only
--junit-xml:生成测试用例xml文件(可以后期进行)
常用参数:
-k参数:选择特定的测试用例
只执行含有add的测试用例: `pytest -vs -k 'add' pytest -vs -k 'TestCalc and not test_add_1'
--collect-only参数:只收集测试用例,先不执行
pytest --collect-only
--junit-xml:生成测试用例xml文件(可以后期进行)
相关推荐
斯卡蒂味的鱼汤:知道你不会来数马,就不捞你😂最近数马疯狂扩招,招聘要求挺低的,你能力肯定够,应该就是因为太强了,知道你不会来才不捞你