dylanb / gulp-coverage

Gulp coverage reporting for Node.js that is independent of the test runner
MIT License
60 stars 12 forks source link

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

Open davidfekke opened 8 years ago

davidfekke commented 8 years ago

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?

remojansen commented 8 years ago

:+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 commented 8 years ago

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

dylanb commented 8 years ago

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