-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
override tests for saucelabs, itll be rebased anyway
- Loading branch information
1 parent
9360b8e
commit 579a47c
Showing
14 changed files
with
155 additions
and
169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var commonSauceConfig = require('./karma.sauce.config'); | ||
var files = require('./karma.integration.config').files; | ||
|
||
module.exports = function(config) { | ||
var testConfig = Object.assign({}, commonSauceConfig, { | ||
logLevel: config.LOG_INFO, | ||
files: files.concat(['build/raven.test.js']) | ||
}); | ||
config.set(testConfig); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var commonSauceConfig = require('./karma.sauce.config'); | ||
var files = require('./karma.loader.config').files; | ||
|
||
module.exports = function(config) { | ||
var testConfig = Object.assign({}, commonSauceConfig, { | ||
logLevel: config.LOG_INFO, | ||
files: files | ||
}); | ||
config.set(testConfig); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
var commonConfig = require('./karma.config'); | ||
|
||
var customLaunchers = { | ||
sl_chrome: { | ||
base: 'SauceLabs', | ||
browserName: 'chrome', | ||
platform: 'Windows 10', | ||
version: 'latest' | ||
}, | ||
sl_firefox: { | ||
base: 'SauceLabs', | ||
browserName: 'firefox', | ||
platform: 'Windows 10', | ||
version: 'latest' | ||
}, | ||
sl_edge: { | ||
base: 'SauceLabs', | ||
browserName: 'microsoftedge', | ||
version: 'latest', | ||
platform: 'Windows 10' | ||
}, | ||
sl_ie_11: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
platform: 'Windows 7', | ||
version: '11' | ||
}, | ||
sl_ie_10: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
platform: 'Windows 7', | ||
version: '10' | ||
}, | ||
sl_safari: { | ||
base: 'SauceLabs', | ||
browserName: 'safari', | ||
platform: 'OS X 10.12', | ||
version: '11.0' | ||
}, | ||
sl_ios: { | ||
base: 'SauceLabs', | ||
browserName: 'iphone', | ||
platform: 'OS X 10.12', | ||
version: '11.0' | ||
}, | ||
sl_android_7: { | ||
base: 'SauceLabs', | ||
browserName: 'Chrome', | ||
platform: 'Android', | ||
version: '7.1', | ||
device: 'Android GoogleAPI Emulator' | ||
}, | ||
sl_android_6: { | ||
base: 'SauceLabs', | ||
browserName: 'Chrome', | ||
platform: 'Android', | ||
version: '6.0', | ||
device: 'Android Emulator' | ||
}, | ||
sl_android_5: { | ||
base: 'SauceLabs', | ||
browserName: 'android', | ||
platform: 'Linux', | ||
version: '5.1' | ||
}, | ||
sl_android_4: { | ||
base: 'SauceLabs', | ||
browserName: 'android', | ||
platform: 'Linux', | ||
version: '4.4' | ||
} | ||
}; | ||
|
||
module.exports = Object.assign({}, commonConfig, { | ||
customLaunchers: customLaunchers, | ||
browsers: Object.keys(customLaunchers), | ||
reporters: ['failed', 'saucelabs'], | ||
singleRun: true, | ||
plugins: commonConfig.plugins.concat(['karma-sauce-launcher']), | ||
build: process.env.TRAVIS_BUILD_NUMBER, | ||
// SauceLabs allows for 2 tunnels only, therefore some browsers will have to wait | ||
// rather long time. Plus mobile emulators tend to require a lot of time to start up. | ||
// 10 minutes should be more than enough to run all of them. | ||
browserNoActivityTimeout: 600000, | ||
captureTimeout: 600000, | ||
sauceLabs: { | ||
startConnect: false, | ||
// Just something "random" so we don't have to provide additional ENV var when running locally | ||
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER || Math.ceil(Math.random() * 1337), | ||
recordScreenshots: false, | ||
recordVideo: false, | ||
testName: | ||
'Raven.js' + | ||
(process.env.TRAVIS_JOB_NUMBER ? ' #' + process.env.TRAVIS_JOB_NUMBER : ''), | ||
public: 'public' | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var commonConfig = require('./karma.config'); | ||
|
||
module.exports = function(config) { | ||
var testConfig = Object.assign({}, commonConfig, { | ||
logLevel: config.LOG_INFO, | ||
files: ['build/raven.test.js'] | ||
}); | ||
config.set(testConfig); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.