如前所述,我得到了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