4

I have a Node.js module composed of both a C++ addon and Javascript library code. It includes command line generated code coverage analysis using lcov for the C++ and istanbul for the Javascript. The output from both is in lcov format which can be nicely combined in the completed coverage report. See make cover in the Makefile for details.

My question is how do I post the output of this combined code coverage for display in Coveralls? I have tried using node-coveralls but this only handles the javascript in the module and as far as I can see cpp-coveralls only handles the C++. Is there perhaps a way to combine the output of the two and post the result to Coveralls?

Thanks in advance for any insight.

Homme Zwaagstra
  • 11,713
  • 2
  • 17
  • 14

1 Answers1

1

I would try running both node-coveralls and cpp-coveralls and dumping their payload instead of sending it directly to coveralls.io. I would then combine the two json file into one and post it to coveralls.io.

Martin Delille
  • 11,360
  • 15
  • 65
  • 132
  • Thanks for the response but although cpp-coveralls supports the `--dump` option to output to JSON, there is no such support that I could find in node-coveralls; it posts the JSON straight off to coveralls.io. – Homme Zwaagstra May 21 '14 at 14:55
  • 1
    The beauty of open source and github lets you either send them a patch to enable that option, or simply requesting it from the devs: https://github.com/cainus/node-coveralls – Joakim Jan 23 '15 at 17:17
  • @HommeZwaagstra if you like opensource project, let's give them some help or some money: this will make the developers happy to help you :-) – Martin Delille Jan 27 '15 at 14:04