pytest.faq
FAQ
- Question. 如何在 pytest 中顯示
print
結果:
Ans. 在指令中帶入 -s
(--capture=no
) 選項
- Question. 如何在 pytest 中顯示全部摘要資訊:
Ans. 在指令中帶入 -rA
選項,A 代表 all 將會顯示 (f)ailed, (E)rror, (s)kipped, (x)failed, (X)passed, (p)assed, (P)assed with output, (a)ll except passed, (p/P)