1. pytest -s

    Pytest常用命令 (未完待续。。。)

 关闭Captured stdout call输出信息(失败或成功都不显示输出结果),但是会显示在test session starts部分

 效果等同于 --capture=no, 不捕获

栗子:

     pytest test_sample.py

      Pytest常用命令 (未完待续。。。)

     pytest -s test_sample.py, 加了-s 不再显示Captured stdout call 信息,但是会显示在test session starts

    Pytest常用命令 (未完待续。。。)

 

 

 

相关文章:

  • 2021-07-01
  • 2022-02-26
  • 2021-10-02
  • 2022-02-12
  • 2021-10-07
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-12-03
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案