Merge pull request #55 from videojs/saucelabs-more-browsers
Saucelabs more browsers
Showing
1 changed file
with
46 additions
and
62 deletions
... | @@ -5,6 +5,45 @@ | ... | @@ -5,6 +5,45 @@ |
5 | // 3. Run your tests | 5 | // 3. Run your tests |
6 | 6 | ||
7 | module.exports = function(config) { | 7 | module.exports = function(config) { |
8 | var customLaunchers = { | ||
9 | chrome_sl: { | ||
10 | singleRun: true, | ||
11 | base: 'SauceLabs', | ||
12 | browserName: 'chrome', | ||
13 | platform: 'Windows 7', | ||
14 | version: '34' | ||
15 | }, | ||
16 | |||
17 | firefox_sl: { | ||
18 | singleRun: true, | ||
19 | base: 'SauceLabs', | ||
20 | browserName: 'firefox', | ||
21 | platform: 'Windows 8' | ||
22 | }, | ||
23 | |||
24 | safari_sl: { | ||
25 | singleRun: true, | ||
26 | base: 'SauceLabs', | ||
27 | browserName: 'safari', | ||
28 | platform: 'OS X 10.8' | ||
29 | }, | ||
30 | |||
31 | ipad_sl: { | ||
32 | singleRun: true, | ||
33 | base: 'SauceLabs', | ||
34 | browserName: 'ipad', | ||
35 | platform:'OS X 10.9', | ||
36 | version: '7.1' | ||
37 | }, | ||
38 | |||
39 | android_sl: { | ||
40 | singleRun: true, | ||
41 | base: 'SauceLabs', | ||
42 | browserName: 'android', | ||
43 | platform:'Linux' | ||
44 | } | ||
45 | }; | ||
46 | |||
8 | config.set({ | 47 | config.set({ |
9 | // base path, that will be used to resolve files and exclude | 48 | // base path, that will be used to resolve files and exclude |
10 | basePath: '', | 49 | basePath: '', |
... | @@ -17,20 +56,12 @@ module.exports = function(config) { | ... | @@ -17,20 +56,12 @@ module.exports = function(config) { |
17 | // Setting singleRun to true here will start up your specified browsers, run tests, and then shut down the browsers. Helpful to have in a CI environment, where you don't want to leave browsers running continuously. | 56 | // Setting singleRun to true here will start up your specified browsers, run tests, and then shut down the browsers. Helpful to have in a CI environment, where you don't want to leave browsers running continuously. |
18 | singleRun: true, | 57 | singleRun: true, |
19 | 58 | ||
20 | // Start these browsers, currently available: | 59 | // custom launchers for sauce labs |
21 | // - Chrome | 60 | //define SL browsers |
22 | // - ChromeCanary | 61 | customLaunchers: customLaunchers, |
23 | // - Firefox | 62 | |
24 | // - Opera | 63 | // Start these browsers |
25 | // - Safari (only Mac) | 64 | browsers: ['chrome_sl', 'ipad_sl'], //Object.keys(customLaunchers), |
26 | // - PhantomJS | ||
27 | // - IE (only Windows) | ||
28 | // Example usage: | ||
29 | browsers: ['chrome_test'], | ||
30 | //'firefox_test', | ||
31 | //'safari_test', | ||
32 | //'ipad_test', | ||
33 | //'android_test' | ||
34 | 65 | ||
35 | // List of files / patterns to load in the browser | 66 | // List of files / patterns to load in the browser |
36 | // Add any new src files to this list. | 67 | // Add any new src files to this list. |
... | @@ -72,16 +103,9 @@ module.exports = function(config) { | ... | @@ -72,16 +103,9 @@ module.exports = function(config) { |
72 | 'karma-sauce-launcher' | 103 | 'karma-sauce-launcher' |
73 | ], | 104 | ], |
74 | 105 | ||
75 | // list of files to exclude | ||
76 | exclude: [ | ||
77 | |||
78 | ], | ||
79 | |||
80 | |||
81 | // test results reporter to use | 106 | // test results reporter to use |
82 | // possible values: 'dots', 'progress', 'junit' | 107 | // possible values: 'dots', 'progress', 'junit' |
83 | reporters: ['progress'], | 108 | reporters: ['dots', 'progress'], |
84 | |||
85 | 109 | ||
86 | // web server port | 110 | // web server port |
87 | port: 9876, | 111 | port: 9876, |
... | @@ -106,46 +130,6 @@ module.exports = function(config) { | ... | @@ -106,46 +130,6 @@ module.exports = function(config) { |
106 | build: process.env.TRAVIS_BUILD_NUMBER, | 130 | build: process.env.TRAVIS_BUILD_NUMBER, |
107 | testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH, | 131 | testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH, |
108 | recordScreenshots: false | 132 | recordScreenshots: false |
109 | }, | ||
110 | |||
111 | //define SL browsers | ||
112 | customLaunchers: { | ||
113 | chrome_test: { | ||
114 | singleRun: true, | ||
115 | base: 'SauceLabs', | ||
116 | browserName: 'chrome', | ||
117 | platform: 'Windows XP' | ||
118 | }, | ||
119 | |||
120 | firefox_test: { | ||
121 | singleRun: true, | ||
122 | base: 'SauceLabs', | ||
123 | browserName: 'firefox', | ||
124 | platform: 'Windows 8' | ||
125 | }, | ||
126 | |||
127 | safari_test: { | ||
128 | singleRun: true, | ||
129 | base: 'SauceLabs', | ||
130 | browserName: 'safari', | ||
131 | platform: 'OS X 10.8' | ||
132 | }, | ||
133 | |||
134 | ipad_test: { | ||
135 | singleRun: true, | ||
136 | base: 'SauceLabs', | ||
137 | browserName: 'ipad', | ||
138 | platform:'OS X 10.8' | ||
139 | }, | ||
140 | |||
141 | android_test: { | ||
142 | singleRun: true, | ||
143 | base: 'SauceLabs', | ||
144 | browserName: 'android', | ||
145 | platform:'Linux' | ||
146 | } | ||
147 | |||
148 | } | 133 | } |
149 | |||
150 | }); | 134 | }); |
151 | }; | 135 | }; | ... | ... |
-
Please register or sign in to post a comment