Comments (3)
That's a good question... The stream need to be flushed but you don't use the covered files objects in this case.
I'd run the question around the community, maybe there should be a gulp-flush plugin that just consume files but don't pass them through.
from gulp-istanbul.
Ok, so I guess the core issue it is a design error on this plugin part.
We pass through the instrumented files to allow coverage report from other environment than node. This mean that we build up the back pressure and it is never released as most user won't add any task after the istanbul stream.
Maybe we should make a config to control pass through:
gulp.src()
.pipe(istanbul({ passthrough: true })
Or separate the coverage from actually hooking require
, meaning the last step is an output step and won't pass through the files.
gulp.src()
.pipe(istanbul.cover())
.pipe(istanbul.hookRequire())
from gulp-istanbul.
Thanks, this fixed the issue for me :)
from gulp-istanbul.
Related Issues (20)
- Enforce Threshold fails silently if string containing number is passed in. HOT 1
- how to cover es6 code HOT 1
- Example using babel-plugin-istanbul HOT 1
- Yet another "nothing covered" (with gulp-mocha 4.x) HOT 9
- does not work with async/await (node 7.6+) HOT 7
- Node 7 istanbul 1.1.0-alpha.1 HOT 2
- gulp-Istanbul 1.1.1 is not compatible with gulp-mocha 4.1.0 HOT 4
- Cannot read property 'toString' of null HOT 2
- Deprecated [email protected] HOT 1
- No coverage being reported with mocha/istanbul/gulp/es6/isparta HOT 2
- Upgrading to IstanbulJS - the new version of Istanbul HOT 4
- Replace deprecated dependency gulp-util
- es6 code coverage HOT 2
- Code coverage is empty when using Qunit HOT 3
- insecure dependencies
- File name will break RegExp
- Migrate from istanbul to nyc HOT 1
- An in-range update of lodash is breaking the build 🚨 HOT 3
- An in-range update of rimraf is breaking the build 🚨 HOT 2
- An in-range update of jshint is breaking the build 🚨 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-istanbul.