dylanb / gulp-coverage

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

Coverage tests hangs up #39

Closed rtorino closed 9 years ago

rtorino commented 9 years ago

gulp-coverage unable to create the coverage.html reporter file and my coverage test hangs up. I am using mocha as test runner. Below is my gulpfile.js:

gulp.src( tests, { 'read' : false } )

        .pipe( cover.instrument( {
            'pattern'        : [ handlers, services ],
            'debugDirectory' : 'instrumented'
        } ) )

        .pipe( mocha( options ) )

        .pipe( cover.gather() )

        .pipe( cover.format( {
            'reporter' : 'html',
            'outFile'  : 'coverage.html'
        } ) )

        .pipe( cover.enforce( {
            'statements' : 70,
            'blocks'     : 70,
            'lines'      : 70
        } ) )

        .once( 'error', function () {
            process.exit( 1 );
        } )

        .once( 'end', function () {
            process.exit();
        } );
dylanb commented 9 years ago

Can you provide a stripped-down gulp file with source code files that reproduces the problem?

If not, can you provide more information? For example: what handlers and services are set to? What the directory structure of the project is, what modules are included in the gulp script etc.

Also:

What output are you seeing? Does Gulp output anything at all?

dylanb commented 9 years ago

Closing this issue due to inability to reproduce. If you provide the info, I will re-open.