2014-05-17 00:48:05 +03:00
|
|
|
module.exports = function(config) {
|
|
|
|
var customLaunchers = {
|
|
|
|
chrome_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'chrome',
|
2014-07-08 21:46:02 +03:00
|
|
|
platform: 'Windows 8.1',
|
2014-05-17 00:48:05 +03:00
|
|
|
version: '34'
|
|
|
|
},
|
|
|
|
|
|
|
|
firefox_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'firefox',
|
2014-07-08 21:46:02 +03:00
|
|
|
platform: 'Linux',
|
|
|
|
version: '29'
|
2014-05-17 00:48:05 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
safari_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'safari',
|
|
|
|
platform: 'OS X 10.8'
|
|
|
|
},
|
|
|
|
|
|
|
|
ipad_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'ipad',
|
|
|
|
platform:'OS X 10.9',
|
|
|
|
version: '7.1'
|
|
|
|
},
|
|
|
|
|
|
|
|
android_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'android',
|
|
|
|
platform:'Linux'
|
2014-07-08 21:46:02 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
ie_sl: {
|
|
|
|
singleRun: true,
|
|
|
|
base: 'SauceLabs',
|
|
|
|
browserName: 'internet explorer',
|
|
|
|
platform: 'Windows 8.1',
|
|
|
|
version: '11'
|
2014-05-17 00:48:05 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.set({
|
|
|
|
basePath: '',
|
|
|
|
|
2015-04-29 23:36:20 +02:00
|
|
|
frameworks: ['qunit'],
|
2014-05-17 00:48:05 +03:00
|
|
|
|
|
|
|
autoWatch: false,
|
|
|
|
|
|
|
|
singleRun: true,
|
|
|
|
|
|
|
|
files: [
|
2015-04-29 23:36:20 +02:00
|
|
|
// include and execute the standalone test bundle first
|
|
|
|
'../build/temp/tests.js',
|
|
|
|
|
|
|
|
// then include video.js through globals to run the API tests
|
2015-03-28 07:59:21 +02:00
|
|
|
'../build/temp/video-js.min.css',
|
|
|
|
'../build/temp/video.min.js',
|
2015-04-29 23:36:20 +02:00
|
|
|
'api/api.js'
|
2015-03-11 03:01:11 +02:00
|
|
|
],
|
|
|
|
|
2014-05-17 00:48:05 +03:00
|
|
|
plugins: [
|
|
|
|
'karma-qunit',
|
|
|
|
'karma-chrome-launcher',
|
|
|
|
'karma-firefox-launcher',
|
|
|
|
'karma-ie-launcher',
|
|
|
|
'karma-opera-launcher',
|
|
|
|
'karma-phantomjs-launcher',
|
|
|
|
'karma-safari-launcher',
|
|
|
|
'karma-sauce-launcher',
|
2015-03-27 22:52:40 +02:00
|
|
|
'karma-coverage'
|
2014-05-17 00:48:05 +03:00
|
|
|
],
|
|
|
|
|
2015-05-12 23:05:08 +02:00
|
|
|
reporters: ['dots', 'saucelabs', 'coverage'],
|
2014-05-17 00:48:05 +03:00
|
|
|
|
|
|
|
// web server port
|
|
|
|
port: 9876,
|
|
|
|
|
|
|
|
// cli runner port
|
|
|
|
runnerPort: 9100,
|
|
|
|
|
|
|
|
colors: true,
|
|
|
|
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
|
|
|
|
captureTimeout: 60000,
|
|
|
|
|
2015-05-06 20:01:52 +02:00
|
|
|
browserNoActivityTimeout: 60000,
|
|
|
|
|
2014-05-17 00:48:05 +03:00
|
|
|
sauceLabs: {
|
|
|
|
startConnect: true,
|
|
|
|
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
|
|
|
|
build: process.env.TRAVIS_BUILD_NUMBER,
|
|
|
|
testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH,
|
|
|
|
recordScreenshots: false
|
2015-03-27 22:52:40 +02:00
|
|
|
},
|
2015-05-12 23:05:08 +02:00
|
|
|
customLaunchers: customLaunchers,
|
2015-03-27 22:52:40 +02:00
|
|
|
|
|
|
|
// The HTML reporter seems to be busted right now, so we're just using text in the meantime
|
|
|
|
// along with the summary after the test run.
|
|
|
|
coverageReporter: {
|
|
|
|
reporters: [
|
|
|
|
{
|
|
|
|
type: 'text',
|
|
|
|
dir: 'coverage/',
|
|
|
|
file: 'coverage.txt'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'lcovonly',
|
|
|
|
dir: 'coverage/',
|
|
|
|
subdir: '.'
|
|
|
|
},
|
|
|
|
{ type: 'text-summary' }
|
|
|
|
]
|
2014-05-17 00:48:05 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|