pytest

--gherkin-terminal-reporter
enable gherkin output
--gherkin-terminal-reporter-expanded
expand scenario outlines into scenarios and fill in the step names

 

详细显示执行信息

pytest -vv py_test/test1.py

详细显示执行信息并计算每个测试用例使用的时间

pytest -vv --durations=0 py_test/test_1.py


打印过程中的输出
pytest -s py_test/test_1.py
posted @ 2021-03-17 18:04  巴黎爱工作  阅读(47)  评论(0编辑  收藏  举报