【问题标题】:pytest: error: unrecognized arguments: --alluredirpytest:错误:无法识别的参数:--alluredir
【发布时间】:2019-12-25 16:25:53
【问题描述】:
(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

【问题讨论】:

    标签: python-3.x pytest allure


    【解决方案1】:

    我对 allure 框架一点也不熟悉,但听起来你缺少提供命令行参数的 allure-pytest 插件

    您可能需要在尝试运行测试的任何环境中pip install allure-pytest

    【讨论】:

    【解决方案2】:

    通过pip检查你是否安装了allure-pytest

    pip list
    

    如果没有,请使用:

    pip install allure-pytest
    

    【讨论】:

    • 我已经安装了 allure-pytest,它也会在“pip list”中列出,但是当我检查版本“allure --version”时,我收到一条消息“不被识别为内部……”。你知道我该如何解决这个问题吗?
    • 我没遇到过这个问题,建议你使用:pip install --upgrade module_name
    猜你喜欢
    • 1970-01-01
    • 2022-08-23
    • 1970-01-01
    • 1970-01-01
    • 2015-12-24
    • 2021-01-14
    • 2020-03-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多