python - 在 pytest html 中执行 Pytest 重复插件结果为“未捕获日志输出”
问题描述
如前所述,我得到了https://i.stack.imgur.com/uAN9F.png
如果我不使用重复插件,日志是可见的。但是使用重复插件,日志丢失了。
这是我的命令行:
pytest -v --capture=tee-sys --log-cli-level=INFO --tb=short -o log_cli=true --log-format=%(asctime)s-%(levelname)-8s %(name )s:%(message)s --log-date-format=%Y-%m-%d-%H:%M:%S test.py::TestSuite::test_001 test.py::TestSuite:: test_002 -s --count=2 --repeat-scope=session --html Dashboard.html
解决方案
推荐阅读
- matlab - 在matlab中绘制三次根
- c# - .NET 核心实体框架 - 转义“@”字符
- android - 如何将页脚添加到 Gridview?
- c++ - 为什么这种获取 CPU 利用率的方法产生的结果比任务管理器中的方法低 2 倍?
- android - 播放视频时全屏 Webview 不隐藏 Web 的导航栏
- javascript - 在 React JSX 中显示值的总和
- python - 比较两个 json 模式
- redux-form - 带有提交验证的 redux-form 向导
- python - 将python文件连接到mysql数据库时如何修复“no module name mysql”错误
- ios - 生成自定义 UIView 的 UINib 实例给出“不符合键值编码”错误