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
------------------------- A little Progress a day makes you a big success... ----------------------------
原文地址:https://www.cnblogs.com/qianjinyan/p/14550968.html