javascript - Force mocha to always show "diffs"... even for passing tests?
问题描述
So, upon failing a test, mocha
will display the "expected" and "actual" values of your assertion, i.e...
AssertionError: expected 3 to be 4
actual expected
3 4
Useful. However, when all is going well, and your tests are passing.. no such info is displayed. Regardless of whether or not you supply the --inline-diffs
option, you simply get...
✓ your goddamn test passed
1 passing (69ms)
Is it possibly to cajole, persuade, or coax mocha
into displaying the former's more descriptive details of the test's "intermediate values", even if the results pass? Like...
✓ your goddamn test passed (result was 4)
解决方案
推荐阅读
- javascript - 当我在 Repl.it 软件中运行我的代码时,它无法识别我的任何变量
- ios - 是否有显示模态视图指示器的标准方法?
- stream - Ada - 如何显式打包位字段记录类型?
- javascript - Javascript在html进度标签上获取mousemove clientX值
- c# - API 添加了几条记录而不是一条
- python - 使用 pandas 读取“只读”SQL
- amazon-web-services - 此 AWS 服务器放置在哪里
- wpf - IValueConverter 和绑定一个 DependencyObject
- corda - 在 Enterprise Corda 中可以实现的功能在社区版 CORDA 中无法实现
- c++ - 如何更改 xlib 坐标原点