【问题标题】:ERROR The "html" reporter does not exist. Check the reporter parameter for errors错误“html”报告器不存在。检查报告器参数是否有错误
【发布时间】:2021-10-09 14:51:22
【问题描述】:

我正在运行 错误“html”报告器不存在。检查报告器参数是否有错误。 使用 testcafe 运行测试时出错。请告诉我我可以做些什么来解决这个问题?

【问题讨论】:

    标签: testing automation automated-tests e2e-testing testcafe


    【解决方案1】:

    请检查您是否安装了 testcafe-reporter-html npm 包。 要安装它,请使用以下命令:

    npm install testcafe-reporter-html
    

    如果这没有帮助,也许报告者会抛出一个未添加到控制台输出的错误。 我们已经有一个类似的请求,将原始错误中的信息添加到控制台输出:https://github.com/DevExpress/testcafe/issues/6437 这将在未来的一个版本中实现。

    【讨论】:

      【解决方案2】:

      TestCafe 内置了这些报告器:https://testcafe.io/documentation/402825/guides/concepts/reporters#header

      所有其他的都需要通过 npm 安装并导入到项目中。

      【讨论】:

        【解决方案3】:

        尝试全局安装npm,问题会解决

        npm install -g testcafe-reporter-html

        来源:https://testcafe.io/documentation/402811/guides/extend-testcafe/install-plugins

        【讨论】:

          猜你喜欢
          • 2013-05-24
          • 2021-12-28
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-11-05
          • 1970-01-01
          • 1970-01-01
          • 2017-06-17
          相关资源
          最近更新 更多