在JavaScript中整合了代码覆盖率报告

我有基于node.js的项目,也包括客户端代码。 我有2个独立的unit testing套件,前端1个,后端1个。 我目前有摩卡运行使用毯子代码覆盖率和pipe道结果到工作服模块,如下所示:

mocha --require blanket --reporter mocha-lcov-reporter server/test/unit | ./node_modules/.bin/coveralls 

我基本上需要结合这两个testing运行(服务器和客户端)的输出:

 mocha --require blanket --reporter mocha-lcov-reporter server/test/unit 

 mocha --require blanket --reporter mocha-lcov-reporter client/test/unit 

并将其连接到工作服模块中。

这可能吗? 我将如何做到这一点?

我使用了gulp和工作服插件来完成这个工作:

http://gulpjs.com/

https://www.npmjs.org/package/gulp-coveralls