首页 > 解决方案 > 在 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

标签: pythonpytestpytest-html

解决方案


推荐阅读