1. pytest -s
关闭Captured stdout call输出信息(失败或成功都不显示输出结果),但是会显示在test session starts部分
效果等同于 --capture=no, 不捕获
栗子:
pytest test_sample.py
pytest -s test_sample.py, 加了-s 不再显示Captured stdout call 信息,但是会显示在test session starts
1. pytest -s
关闭Captured stdout call输出信息(失败或成功都不显示输出结果),但是会显示在test session starts部分
效果等同于 --capture=no, 不捕获
栗子:
pytest test_sample.py
pytest -s test_sample.py, 加了-s 不再显示Captured stdout call 信息,但是会显示在test session starts
相关文章: