Skip to content

Commit 7615723

Browse files
committed
chore: make it simpler to run tests on SL/BS during local development
1 parent 338f949 commit 7615723

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

karma-shared.conf.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@ module.exports = function(config, specificOptions) {
99
browserDisconnectTolerance: 2,
1010

1111

12-
// config for Travis CI
12+
// SauceLabs config for local development.
1313
sauceLabs: {
1414
testName: specificOptions.testName || 'AngularJS',
15-
startConnect: false,
16-
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
15+
startConnect: true
1716
},
1817

19-
// BrowserStack config for Travis CI
18+
// BrowserStack config for local development.
2019
browserStack: {
21-
startTunnel: false,
2220
project: 'AngularJS',
2321
name: specificOptions.testName,
24-
build: process.env.TRAVIS_BUILD_NUMBER,
22+
startTunnel: true,
2523
timeout: 600 // 10min
2624
},
2725

@@ -122,8 +120,13 @@ module.exports = function(config, specificOptions) {
122120

123121
config.logLevel = config.LOG_DEBUG;
124122
config.transports = ['websocket', 'xhr-polling'];
123+
125124
config.browserStack.build = buildLabel;
125+
config.browserStack.startTunnel = false;
126+
126127
config.sauceLabs.build = buildLabel;
128+
config.sauceLabs.startConnect = false;
129+
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
127130

128131
// TODO(vojta): remove once SauceLabs supports websockets.
129132
// This speeds up the capturing a bit, as browsers don't even try to use websocket.

0 commit comments

Comments
 (0)