Based pytest-allure test reports Installation
Operating environment: windows computer
Installation: pip install pytest-allure
run the test case: pytest test_demo.py --alluredir ./report
generate HTML test report:allure generate ./report -o ./reportHTML
Note: The following is not installed in fact ok
To install allure-commandline: npm install -g allure-commandline --save-dev
To install allure2: allure2 Release packet address
Reference:
Configuration Installation: main function configuration