我刚刚安装了 mocha 并且正在使用相当基本的设置来运行 2 个测试,但它不会输出所有结果。
我期待看到:
foo
bar
√ does thing
baz
√ does other thing
但我只看到前 2-4 行(变化无明显模式)。似乎这里有某种与时间相关的元素,但我不知道如何修复它。
- 环境是Windows 8下的cygwin。
- 我正在通过运行来运行 mocha
npm test
。 - 我在 package.json 中的测试命令是
mocha test/*.js -R spec
.