node-coveralls
node-coveralls copied to clipboard
cat: ./coverage/lcov.info: No such file or directory
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.
Getting the same error too!
+1
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.