-
Notifications
You must be signed in to change notification settings - Fork 103
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
Concurrency limit #8
Comments
@karma-runner will you have a look at this? |
In my project I simply define multiple grunt tasks, and run them sequentially:
I also use a solution similar to this answer to always run the tests in all browsers, even if tests in the first one fail. Of course, this only works when using My full config: Gruntfile.js and karma.conf.js. |
@rkistner thanks alot! That should solve my problems. Smart to use multiple grunt tasks, didn't think of that :) |
@rkistner do you also have a solution to mark browser runs passed/failed perhaps? |
@wnr Unfotunately I don't. I'll log it as a separate issue. |
@rkistner okay cool :) |
This was fixed by karma-runner/karma#57, which was released in karma 0.11.0 ( No need to specify the concurrency limit - the first browsers start running the tests immediately, and the next batch are queued and run as soon as the first ones have finished. |
Oh okay, cool :) Thanks a bunch |
…address concurrency limits. See: karma-runner/karma-sauce-launcher#8
Thanks @rkistner for sharing your setup! I ended up doing the same thing but also in a way that separate karma tasks are created dynamically of given sauce lab browser setup: karma.conf.js, saucelabs-browsers.js, Gruntfile.js check also |
@rkistner Expansion using caolan's grunt.registerTask('tests', function() {
var done = this.async();
var series = [];
var success = true;
var tasks = {};
Object.keys(grunt.config.data.karma).forEach(function(key) {
if (key === 'options') {
return;
}
var task = 'karma:' + key;
tasks[task] = 0;
series.push(function(callback) {
grunt.util.spawn({
args: [task],
grunt: true,
opts: {
stdio: 'inherit'
}
}, function(error, result, code) {
tasks[task] = code;
if (code !== 0) {
success = false;
}
callback();
});
});
});
async.parallelLimit(series, 1, function() {
done(success);
});
}); |
@kimmobrunfeldt This doesn't actually flag the browser as having failed in |
see #40 and karma-runner/karma#1646. |
Is there any way of setting the concurrency (parallel) limit when testing with sauce? Because right now I'm unable to
test more than 3 browsers because I'm hitting my parallel cap of my open sauce account.
Have a look at https://github.com/axemclion/grunt-saucelabs which have the concurrency option.
The text was updated successfully, but these errors were encountered: