【发布时间】:2016-11-09 03:54:02
【问题描述】:
我正在使用 Istanbul 来覆盖我正在创建的 Web 应用程序的代码。每当我运行npm run cover --color=always(运行:../node_modules/babel-cli/bin/babel-node.js -- node_modules/.bin/babel- istanbul cover test/index.js --report=cobertura --print=detail --x=dist/**)
但是直到大约 60 秒后,终端上什么都没有出现,当我得到 这个错误:
TAP version 13
# application server
Aborted (core dumped)
但是,如果我在 index.js 文件的底部编写了导致错误的内容(例如未定义的函数),它将打印出覆盖范围以及该错误。
对可能出现的问题有什么想法吗?
【问题讨论】:
标签: javascript node.js unit-testing testing code-coverage