找到你要的答案

Q:Jest minimal report on Windows 8.1

Q:开玩笑对Windows 8.1的最小的报告

I just ran jest on one test file containing multiple tests inside.

This is the output I see whenever I run the jest command: 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 | ----------|-----------|-----------|-----------|-----------|

(no detailed report of what tests actually succeeded). Whenever a test fails I would only see that one and not a detailed report - for example 2 out of 3 tests passed.

How can I make jest use a more verbose mode?

P.S. I tried using 'setupTestFrameworkScriptFile' option and using a script file to set jasmine.VERBOSE = true, but it seems like it has no effect on the output.

Thanks

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

This is the output I see whenever I run the jest command: 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 | ----------|-----------|-----------|-----------|-----------|

(no detailed report of what tests actually succeeded). Whenever a test fails I would only see that one and not a detailed report - for example 2 out of 3 tests passed.

我怎样才能把笑话用更冗长的模式?

P.S. I tried using 'setupTestFrameworkScriptFile' option and using a script file to set jasmine.VERBOSE = true, but it seems like it has no effect on the output.

谢谢

answer1: 回答1:

It appears to be the wanted behavior - be as simple as possible. No way to extend the output without adding a new feature to the framework.

这似乎是被通缉的行为-尽可能简单。无法扩展输出而不向框架添加新功能。

javascript  testing  tdd  jestjs