1個練習引起的系列學習之pytest生成測試報告 (三)

1、背景介紹
pytest提供了生成報告的功能。
使用pytest --help能夠進行查看。
1個練習引起的系列學習之pytest生成測試報告 (三)html

2、 生成測試報告ide

  • -v 顯示詳情
    1個練習引起的系列學習之pytest生成測試報告 (三)學習

  • -q 只顯示彙總信息
    1個練習引起的系列學習之pytest生成測試報告 (三)測試

    -r 用chars標識用例執行結果,(f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (p)passed, (P)passed with output, (a)all except pP.
    1個練習引起的系列學習之pytest生成測試報告 (三)3d

    --disable-warning ,disable warnings summary
    1個練習引起的系列學習之pytest生成測試報告 (三)xml

    -l ,show locals in tracebacks (disabled by default)
    1個練習引起的系列學習之pytest生成測試報告 (三)htm

--tb=style,traceback print mode (auto/long/short/line/native/no).
--tb=no
1個練習引起的系列學習之pytest生成測試報告 (三)blog

--full-trace don't cut any tracebacks (default is to cut).
1個練習引起的系列學習之pytest生成測試報告 (三)ip

--color=color color terminal output (yes/no/auto).
--color=no
1個練習引起的系列學習之pytest生成測試報告 (三)terminal

--junit-xml=path , create junit-xml style report file at given path.
1個練習引起的系列學習之pytest生成測試報告 (三)

--html=path , create html report file at given path.
1個練習引起的系列學習之pytest生成測試報告 (三)

相關文章
相關標籤/搜索