gulp-coverage icon indicating copy to clipboard operation
gulp-coverage copied to clipboard

Error in plugin 'gulp-coveralls' Message: Failed to parse string

Open davidfekke opened this issue 9 years ago • 3 comments

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?

davidfekke avatar Jan 15 '16 17:01 davidfekke

:+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

remojansen avatar Jan 24 '16 11:01 remojansen

My problem was that I wasn't running the istanbul hook before running the unit tests with mocha.

remojansen avatar Jan 24 '16 11:01 remojansen

@davidfekke does @remojansen's fix address your issue?

dylanb avatar Jan 24 '16 19:01 dylanb