- pytest Quick Start Guide
- Bruno Oliveira
- 74字
- 2021-07-16 17:51:30
Disabling capturing with -s
While running your tests locally, you might want to disable output capturing to see what messages are being printed in real-time, or whether the capturing is interfering with other capturing your code might be doing.
In those cases, just pass -s to pytest to completely disable capturing:
λ pytest tests\test_digest.py -s
======================== test session starts ========================
...
tests\test_digest.py content size 29
0cf857938e0b4a1b3fdd41d424ae97d0caeab166
.
===================== 1 passed in 0.02 seconds ======================
推薦閱讀
- Mastering Machine Learning for Penetration Testing
- JBoss EAP6 High Availability
- 信息通信網絡建設安全管理概要2
- 計算機網絡與通信(第2版)
- Wireshark網絡分析就這么簡單
- IPv6網絡切片:使能千行百業新體驗
- 新手易學:新手學淘寶開店
- 端到端QoS網絡設計
- 商業的本質和互聯網
- React Design Patterns and Best Practices(Second Edition)
- 算力網絡:云網融合2.0時代的網絡架構與關鍵技術
- ReasonML Quick Start Guide
- 網絡基本通信約束下的系統性能極限分析與設計
- 網絡分析技術揭秘:原理、實踐與WinPcap深入解析
- 物聯網系統設計