We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to cover all the files in the directory recursively
The text was updated successfully, but these errors were encountered:
@aamin3189 great question! the easiest way to do this is to use an .istanbul.yml file, do you already have one?
.istanbul.yml
Sorry, something went wrong.
Thanks @nelsonic . After a little digging I have found that we can write a gulp task to generate coverage report for all the files,
var gulp = require('gulp'); var istanbul = require('gulp-istanbul'); gulp.task('test', function () { return gulp.src(['./test/**/*.js']) // Right there .pipe(istanbul({includeUntested: true})) .on('finish', function () { gulp.src(['./test/**/*.js']) .pipe(istanbul.writeReports({ dir: './coverage', reporters: [ 'lcov' ], reportOpts: { dir: './coverage'} })); }); });
@aamin3189 that should do the trick if you are already using gulp for your build tasks. 👍
No branches or pull requests
How to cover all the files in the directory recursively
The text was updated successfully, but these errors were encountered: