dylanb / gulp-coverage

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

Emit raw LCOV too #25

Closed nevir closed 10 years ago

nevir commented 10 years ago

I'd like to be able to wire this up with https://www.npmjs.org/package/gulp-coveralls (or something else that reports to coveralls), but that consumes the raw LCOV data; not the JSON-formatted output

Ideally: gulp.task('test:unit', function() { return gulp.src('test/*/.js') .pipe(coverage.instrument({pattern: ['lib/*/.js']})) .pipe(mocha()) .pipe(coverage.gather()) .pipe(coverage.format({reporter: 'lcov'})) .pipe(coveralls()); });

dylanb commented 10 years ago

@nevir I have committed an initial simple implementation of a coveralls integration. The data does not map 100% so I mapped statements to branches and did not include information about functions.

Please clone this repo and let me know what you think of the implementation.

dylanb commented 10 years ago

@nevir - I am closing this issue as resolved with the fix I made a couple of weeks ago. You can reopen it if you have any additional requirements that are not met by the change I made.