(PYTEST_test_programs) E:\PYTEST_test_programs\Allure_report1>pytest test_file01.py --alluredir="C:\Users\Admin\Desktop\Resumes\reports"
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --alluredir=C:\Users\Admin\Desktop\Resumes\reports
inifile: None
rootdir: E:\PYTEST_test_programs\Allure_report1
5871 次
2 回答
5
我对 allure 框架一点也不熟悉,但听起来你缺少allure-pytest提供该命令行参数的插件
您可能需要pip install allure-pytest在尝试运行测试的任何环境中
于 2019-12-25T16:58:16.127 回答
0
检查您是否已allure-pytest通过以下方式安装pip:
pip list
如果没有,请使用以下命令安装它:
pip install allure-pytest
于 2021-03-25T03:59:36.953 回答