Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 349e13f

Browse files
committed
try concurrency for module tests
1 parent f4fc3f5 commit 349e13f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

karma-modules.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ var sharedConfig = require('./karma-shared.conf');
66
module.exports = function(config) {
77
var angularModule = process.env.KARMA_MODULE;
88

9-
sharedConfig(config, {testName: 'AngularJS: module ' + angularModule, logFile: 'karma-modules-' + angularModule + '.log'});
9+
sharedConfig(config, {
10+
testName: 'AngularJS: module ' + angularModule,
11+
logFile: 'karma-modules-' + angularModule + '.log'
12+
});
1013

1114
config.set({
1215
files: angularFiles.mergeFilesFor('karmaModules-' + angularModule)

karma-shared.conf.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ module.exports = function(config, specificOptions) {
177177
if (process.env.TRAVIS) {
178178
var buildLabel = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
179179

180+
config.concurrency = 4;
181+
180182
// Karma (with socket.io 1.x) buffers by 50 and 50 tests can take a long time on IEs;-)
181183
config.browserNoActivityTimeout = 120000;
182184

@@ -187,20 +189,21 @@ module.exports = function(config, specificOptions) {
187189
config.sauceLabs.build = buildLabel;
188190
config.sauceLabs.startConnect = false;
189191
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
190-
config.sauceLabs.recordScreenshots = true;
192+
config.sauceLabs.recordScreenshots = false;
193+
config.saucelabs.recordVideo = false;
191194

192195
// Debug logging into a file, that we print out at the end of the build.
193196
config.loggers.push({
194197
type: 'file',
195198
filename: process.env.LOGS_DIR + '/' + (specificOptions.logFile || 'karma.log')
196199
});
197200

198-
if (process.env.BROWSER_PROVIDER === 'saucelabs' || !process.env.BROWSER_PROVIDER) {
199-
// Allocating a browser can take pretty long (eg. if we are out of capacity and need to wait
200-
// for another build to finish) and so the `captureTimeout` typically kills
201-
// an in-queue-pending request, which makes no sense.
202-
config.captureTimeout = 0;
203-
}
201+
// if (process.env.BROWSER_PROVIDER === 'saucelabs' || !process.env.BROWSER_PROVIDER) {
202+
// // Allocating a browser can take pretty long (eg. if we are out of capacity and need to wait
203+
// // for another build to finish) and so the `captureTimeout` typically kills
204+
// // an in-queue-pending request, which makes no sense.
205+
// config.captureTimeout = 0;
206+
// }
204207
}
205208

206209

0 commit comments

Comments
 (0)