【问题标题】:when i run my testcafe script it shows "ERROR The "html" reporter does not exist. "当我运行我的 testcafe 脚本时,它显示“错误”html“报告器不存在。”
【发布时间】:2022-01-18 10:02:28
【问题描述】:

当我运行我的 testcafe 脚本时,我收到此错误“错误“html”报告器不存在。” 我的代码:

import { Selector } from 'testcafe';


fixture`Example `
    .page`google.com`;


test('google search', async t => {
    await t

});

我导入testcafe-reporter-html 但我仍然收到此错误:

【问题讨论】:

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


    【解决方案1】:

    TestCafe 默认不包含testcafe-reporter-html,所以你需要安装它。在您的项目目录中运行以下命令:

    npm install testcafe-reporter-html
    

    请注意,您不需要导入记者。 Testcafe 会自动找到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-30
      • 2018-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-13
      • 2023-01-25
      • 1970-01-01
      相关资源
      最近更新 更多