其他分享
首页 > 其他分享> > 【pytest】命令行参数-durations统计用例运行时间

【pytest】命令行参数-durations统计用例运行时间

作者:互联网

1.02s call     case/demo/test_demo.py::Test_class::test_001
1.01s call     case/demo/test_demo.py::Test_class::test_001
1.01s call     case/demo/test_demo.py::Test_class::test_002
1.01s call     case/demo/test_demo.py::Test_class::test_002
1.00s call     case/demo/test_demo.py::test_003
1.00s call     case/demo/test_demo.py::test_003
0.56s call     case/goods/test_goods_flow.py::test_good_01
0.54s call     case/register/test_register.py::test_register_2
0.44s call     case/register/test_register.py::test_register
0.34s call     case/goods/test_goods_flow.py::test_good_01
0.31s call     case/register/test_register.py::test_register_2
0.26s call     case/login/test_login.py::test_login_case[test_input1-expected1]
0.26s call     case/login/test_login.py::test_login_case[test_input1-expected1]
0.25s call     case/login/test_login.py::test_login_case[test_input3-expected3]
0.25s call     case/login/test_login.py::test_login_case[test_input3-expected3]
0.23s setup    case/register/test_register.py::test_register
0.23s setup    case/register/test_register.py::test_register_2
0.22s setup    case/goods/test_goods_flow.py::test_good_01
0.22s call     case/login/test_login.py::test_login_case[test_input0-expected0]
0.22s call     case/login/test_login.py::test_login_case[test_input0-expected0]
0.21s call     case/register/test_register.py::test_register
0.19s call     case/login/test_login.py::test_login_case[test_input2-expected2]
0.19s call     case/login/test_login.py::test_login_case[test_input2-expected2]

(7 durations < 0.005s hidden.  Use -vv to show these durations.)

标签:case,register,durations,py,用例,pytest,call,test,login
来源: https://www.cnblogs.com/xwltest/p/16600449.html