1、背景介绍
pytest提供了生成报告的功能。
使用pytest --help能够进行查看。html
2、 生成测试报告ide
-v 显示详情学习
-q 只显示汇总信息测试
-r 用chars标识用例执行结果,(f)ailed, (E)error, (s)skipped, (x)failed, (X)passed, (p)passed, (P)passed with output, (a)all except pP.3d
--disable-warning ,disable warnings summaryxml
-l ,show locals in tracebacks (disabled by default)htm
--tb=style,traceback print mode (auto/long/short/line/native/no).
--tb=noblog
--full-trace don't cut any tracebacks (default is to cut).ip
--color=color color terminal output (yes/no/auto).
--color=noterminal
--junit-xml=path , create junit-xml style report file at given path.
--html=path , create html report file at given path.