测试结果的HTML报告(由pytest-html生成)不包含来自fixture finalizer的日志消息。我尝试使用pytest-html和pytest-catchlog来获得很好的逻辑HTML测试报告,例如:测试用例设置日志消息(从Pytest Function Fixture发送)
测试用例步骤日志消息(从<e
它将所有测试的结果存储到同一个文件中。我希望将日志存储在结果目录中,文件名为results/test1_<timestamp>.log,results/test2_<timestamp>.log。def pytest_configure(config):
""" Create a log file if log_file is not