【问题标题】:Python BDD Behave allure reports failing with format=allure_behave.formatter:AllureFormatter is unknownPython BDD Behave allure 报告失败,格式=allure_behave.formatter:AllureFormatter 未知
【发布时间】:2020-08-05 13:54:00
【问题描述】:

我已经安装了 allure 2.8.17。它位于pipenv 环境中。当我在终端中运行以下命令时:

behave -f allure_behave.formatter:AllureFormatter -o reports/

失败并出现以下错误

usage: behave [options] [ [DIR|FILE|FILE:LINE] ]+
behave: error: format=allure_behave.formatter:AllureFormatter is unknown
(behave) sharathkrishnan@sharaths-mbp features % 

【问题讨论】:

    标签: python bdd allure python-behave


    【解决方案1】:

    我认为您缺少魅力行为: pip install allure-behave?

    【讨论】:

    • 其实我的行为是 2.8.17,它已安装
    • @SharathKrishnan 你需要安装 allure-behave not just allure
    • 完美@bluelabel...谢谢
    【解决方案2】:

    你需要使用 pip install allure-behave 安装,然后运行上面的命令

    【讨论】:

      【解决方案3】:

      当您使用拼写错误指向文件路径时,通常也会发生这种情况。 主要是区分大小写的问题,例如 ./Reports 而不是 ./reports

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-09-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-02-09
        • 1970-01-01
        相关资源
        最近更新 更多