gulp-coverage
gulp-coverage copied to clipboard
Error in plugin 'gulp-coveralls' Message: Failed to parse string
I am getting the following error when I try to run gulp in Travis CI;
[17:27:22] Starting 'coveralls'... [error] "2016-01-15T17:27:23.420Z" 'error from lcovParse: ' 'Failed to parse string' [error] "2016-01-15T17:27:23.421Z" 'input: ' '' [17:27:23] 'coveralls' errored after 529 ms [17:27:23] Error in plugin 'gulp-coveralls' Message: Failed to parse string [17:27:27] Finished 'static' after 5.94 s npm ERR! Test failed. See above for more details. The command "npm test" exited with 1.
It runs without incident locally, but it fails to run in Travis CI. What am I doing wrong?
:+1:
I'm having the same issue. you can see the build log here.
[11:36:22] Starting 'cover'...
[error] "2016-01-24T11:36:22.307Z" 'error from lcovParse: ' 'Failed to parse string'
[error] "2016-01-24T11:36:22.308Z" 'input: ' ''
[11:36:22] 'cover' errored after 37 ms
[11:36:22] Error in plugin 'gulp-coveralls'
Message:
Failed to parse string
[11:36:22] 'default' errored after 3.61 s
My problem was that I wasn't running the istanbul hook before running the unit tests with mocha.
@davidfekke does @remojansen's fix address your issue?