-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
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
gulp-mocha dies silently when running too many test files #52
Comments
I've seen this problem on multiple gulp plugins. I'm not interested in adding an option as it should rather be fixed. Can you open a ticket on gulp? |
These streams should be consumed by |
Can anybody recommend a workaround? Otherwise I'm going to have to revert to an older version - don't have time to help fix this atm. |
This is caused by this line - https://github.com/sindresorhus/gulp-mocha/blob/master/index.js#L25 @pschuegr you can attach |
@pschuegr This is fixed in |
Perfect! thanks a bunch! |
upgrade gulp-mocha to preemptively avoid this guy sindresorhus/gulp-mocha#52 also fix the watch task to watch for realz again
I'm seeing this issue with the latest [email protected]. However, it silently fails (never runs any of the tests and just completes) when there are 80 or more test files it's trying to deal with. It has something to do with This will pass because I limit it to 79 total tests: var counter = 0;
return through(function(file) {
mocha.addFile(file.path);
// this.queue(file);
counter++;
if (counter < 80) {
console.log('File:', counter, file.path);
this.queue(file);
}
}, function() {
var self = this;
var d = domain.create();
var runner;
... This will silently fail because it uses 80 tests: var counter = 0;
return through(function(file) {
mocha.addFile(file.path);
// this.queue(file);
counter++;
if (counter <= 80) {
console.log('File:', counter, file.path);
this.queue(file);
}
}, function() {
var self = this;
var d = domain.create();
var runner;
... |
@hershmire I'd encourage you to mention that issue with the through project if that's truly the culprit (or to triage whether it is). |
I looked into this further. What's the reason for |
https://github.com/dominictarr/through/blob/master/index.js#L40 is the source for that method. I'm not familiar with the |
gulp-mocha uses through2 package internally which has
highWaterMark
option set by default to 16:https://github.com/rvagg/through2/blob/ee2720526f58d5f58e0af5179ca170dbfdf34fbf/through2.js#L88
I have 36 test files in my project and due to this option tests just do not run and
gulp
dies without any error message (it allows me to pass only 16 test files to gulp-mocha; when I try to pass more via gulp pipe it just exits with exit code 0).Can you please expose
through2
options so I can increase itshighWaterMark
limit manually in my project's gulpfile or can you fix this issue in any other way so running multiple test files is possible?The text was updated successfully, but these errors were encountered: