【问题标题】:Jest minimal report on Windows 8.1Windows 8.1 上的 Jest 最小报告
【发布时间】:2015-07-12 02:39:44
【问题描述】:

我只是在一个包含多个测试的测试文件上开玩笑。

这是我在运行 jest 命令时看到的输出: Using Jest CLI v0.4.0 Waiting on 1 test... PASS src\__tests__\index-tests.js (1.107s) 1 test passed (1 total) Run time: 1.36s ----------|-----------|-----------|-----------|-----------| File | % Stmts |% Branches | % Funcs | % Lines | ----------|-----------|-----------|-----------|-----------| ----------|-----------|-----------|-----------|-----------| All files | 100 | 100 | 100 | 100 | ----------|-----------|-----------|-----------|-----------|

(没有关于实际成功的测试的详细报告)。 每当测试失败时,我只会看到那一个而不是详细报告 - 例如,3 次测试中有 2 次通过。

如何让 jest 使用更详细的模式?

附: 我尝试使用“setupTestFrameworkScriptFile”选项并使用脚本文件设置 jasmine.VERBOSE = true,但它似乎对输出没有影响。

谢谢

【问题讨论】:

    标签: javascript testing tdd jestjs


    【解决方案1】:

    这似乎是想要的行为 - 尽可能简单。如果不向框架添加新功能,就无法扩展输出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多