allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

There is no log output in allure

Open nullpointer00 opened this issue 3 years ago • 0 comments

I'm submitting a ...

  • [ ] bug report

What is the current behavior?

Hi I was using Allure and found that the log message was not collected

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

def test_method(logger) logger.info("hi") #Use fixtures to generate a logger if name == 'main': pytest.main(["-s", "--alluredir={}".format(DirInfo.report_dir.value),#Please replace the path "test_cases.py"]) result = os.system(r"allure serve {}".format(DirInfo.report_dir.value)) print("result={}".format(result)) image

What is the expected behavior?

I would like to see logs in the report

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Other information

nullpointer00 avatar May 17 '22 14:05 nullpointer00