【发布时间】:2021-10-09 14:51:22
【问题描述】:
我正在运行 错误“html”报告器不存在。检查报告器参数是否有错误。 使用 testcafe 运行测试时出错。请告诉我我可以做些什么来解决这个问题?
【问题讨论】:
标签: testing automation automated-tests e2e-testing testcafe
我正在运行 错误“html”报告器不存在。检查报告器参数是否有错误。 使用 testcafe 运行测试时出错。请告诉我我可以做些什么来解决这个问题?
【问题讨论】:
标签: testing automation automated-tests e2e-testing testcafe
请检查您是否安装了 testcafe-reporter-html npm 包。 要安装它,请使用以下命令:
npm install testcafe-reporter-html
如果这没有帮助,也许报告者会抛出一个未添加到控制台输出的错误。 我们已经有一个类似的请求,将原始错误中的信息添加到控制台输出:https://github.com/DevExpress/testcafe/issues/6437 这将在未来的一个版本中实现。
【讨论】:
TestCafe 内置了这些报告器:https://testcafe.io/documentation/402825/guides/concepts/reporters#header
所有其他的都需要通过 npm 安装并导入到项目中。
【讨论】:
尝试全局安装npm,问题会解决
npm install -g testcafe-reporter-html
来源:https://testcafe.io/documentation/402811/guides/extend-testcafe/install-plugins
【讨论】: