pytest command line

LEARNING LOG / 2023-05-23 / 原文

 

 

 

pytest -v -s --last-failed --alluredir=report/xml

 -v 打印详细的信息

 -s 输出print打印信息

 --last-failed 只执行上次失败的用例

 --alluredir=report/xml 输出alluredir 到 report/xml