allure-python
allure-python copied to clipboard
There is no log output in allure
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))

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:
- Allure version: 2.18.0
- Test framework: [email protected]
- Allure adaptor: [email protected]