在我们进行自动化测试的时候,用例往往是成百上千,执行的时间是几十分钟或者是小时级别。有时,我们在调试那么多用例的时候,不知道执行到什么程度了,而pytest-sugar插件能很好解决我们的痛点。
pip3 install pytest-sugar
def test_s1():
print("用例 11:登录之后其它动作 111")
def test_s2():
print("用例 22:登录之后其它动作 222")
def test_s3():
print("用例 33:登录之后其它动作 333")
执行命令pytest -s
,没有装插件之前
**装插件之后
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/166335.html原文链接:https://javaforall.cn