nickmerwin / node-coveralls

lcov posting to coveralls.io
Other
1.07k stars 258 forks source link

cat: ./coverage/lcov.info: No such file or directory #98

Open oronbz opened 9 years ago

oronbz commented 9 years ago

Hi, when running istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

I'm getting "No such file or directory" for ./coverage/lcov.info"

  Array
    #indexOf()
      ✓ should return -1 when the value is not present

  1 passing (5ms)

No coverage information was collected, exit without writing coverage information
cat: ./coverage/lcov.info: No such file or directory

istanbul is installed and running.

Please assist, Thanks.

dhruvp commented 9 years ago

Getting the same error too!

janryWang commented 8 years ago

+1

addaleax commented 8 years ago

This problem is, in fact, not really related to node-coveralls; The relevant line here is No coverage information was collected, exit without writing coverage information, meaning that istanbul failed to save any coverage information. Guessing from the above example, the problem likely was that there are no actual source files, only tests, meaning that there is no “real” code which got covered.

If you have this error for other reasons and/or it persists even in the presence of actual code files, a full example (e.g. a link to the failing CI test or a copy of the codebase) would probably help in figuring this out.