codeclimate / javascript-test-reporter

DEPRECATED Code Climate test reporter client for JavaScript projects

Home Page:https://codeclimate.com

Repository from Github https://github.comcodeclimate/javascript-test-reporterRepository from Github https://github.comcodeclimate/javascript-test-reporter

0.3.0 failing when sending lcov data

laynegt opened this issue · comments

Get this in 0.3.0 when sending lcov data. Works in 0.2.1.

/home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/formatter.js:64
data.forEach(function(elem, index) {
^
TypeError: Cannot read property 'forEach' of null
at Formatter.sourceFiles (/home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/formatter.js:64:7)
at /home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/formatter.js:33:26
at Formatter.parse (/home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/formatter.js:24:9)
at Formatter.format (/home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/formatter.js:31:8)
at ReadStream.<anonymous> (/home/rof/.nvm/versions/node/v0.12.0/lib/node_modules/codeclimate-test-reporter/bin/codeclimate.js:25:13)
at ReadStream.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)

Don't think it's related to #16, my lcov file is populated.

I'm having the same issue. Downgraded to 0.2.1 and it works again.

@devinus @oniofchaos @laynegt Sorry about that! #34 should fix it. I just released version 0.3.1 to npm