dylanb / gulp-coverage

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

debugDirectory isn't doing anything #7

Closed adam-lynch closed 10 years ago

adam-lynch commented 10 years ago

gulpfile.js:

    gulp.src('./index.js')
        .pipe(coverage.instrument({
            pattern: ['./test/main.js'],
            debugDirectory: 'debug'
        }))
        .pipe(mocha())
        .pipe(coverage.gather());

What happens:

dylanb commented 10 years ago

Change the pattern to ['test/main.js']

adam-lynch commented 10 years ago

It doesn't make a difference. Neither does changing ./index.js to index.js.

dylanb commented 10 years ago

you need to have 0.0.17, see issue #4

dylanb commented 10 years ago

I think this should also be addressed now?

adam-lynch commented 10 years ago

It's writing to debug now but also still to .coverdata & .coverrun.

dylanb commented 10 years ago

.coverdata and .coverrun are temporary directories it creates for the data collection. I may get rid of this at some point.

adam-lynch commented 10 years ago

Ok