83472e3c by Gary Katsevman

more browsers on saucelabs

1 parent 21c86c7d
...@@ -5,6 +5,43 @@ ...@@ -5,6 +5,43 @@
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 XP'
14 },
15
16 firefox_sl: {
17 singleRun: true,
18 base: 'SauceLabs',
19 browserName: 'firefox',
20 platform: 'Windows 8'
21 },
22
23 safari_sl: {
24 singleRun: true,
25 base: 'SauceLabs',
26 browserName: 'safari',
27 platform: 'OS X 10.8'
28 },
29
30 ipad_sl: {
31 singleRun: true,
32 base: 'SauceLabs',
33 browserName: 'ipad',
34 platform:'OS X 10.8'
35 },
36
37 android_sl: {
38 singleRun: true,
39 base: 'SauceLabs',
40 browserName: 'android',
41 platform:'Linux'
42 }
43 };
44
8 config.set({ 45 config.set({
9 // base path, that will be used to resolve files and exclude 46 // base path, that will be used to resolve files and exclude
10 basePath: '', 47 basePath: '',
...@@ -17,6 +54,10 @@ module.exports = function(config) { ...@@ -17,6 +54,10 @@ 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. 54 // 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, 55 singleRun: true,
19 56
57 // custom launchers for sauce labs
58 //define SL browsers
59 customLaunchers: customLaunchers
60
20 // Start these browsers, currently available: 61 // Start these browsers, currently available:
21 // - Chrome 62 // - Chrome
22 // - ChromeCanary 63 // - ChromeCanary
...@@ -26,11 +67,7 @@ module.exports = function(config) { ...@@ -26,11 +67,7 @@ module.exports = function(config) {
26 // - PhantomJS 67 // - PhantomJS
27 // - IE (only Windows) 68 // - IE (only Windows)
28 // Example usage: 69 // Example usage:
29 browsers: ['chrome_test'], 70 browsers: Object.keys(customLaunchers),
30 //'firefox_test',
31 //'safari_test',
32 //'ipad_test',
33 //'android_test'
34 71
35 // List of files / patterns to load in the browser 72 // List of files / patterns to load in the browser
36 // Add any new src files to this list. 73 // Add any new src files to this list.
...@@ -72,16 +109,9 @@ module.exports = function(config) { ...@@ -72,16 +109,9 @@ module.exports = function(config) {
72 'karma-sauce-launcher' 109 'karma-sauce-launcher'
73 ], 110 ],
74 111
75 // list of files to exclude
76 exclude: [
77
78 ],
79
80
81 // test results reporter to use 112 // test results reporter to use
82 // possible values: 'dots', 'progress', 'junit' 113 // possible values: 'dots', 'progress', 'junit'
83 reporters: ['progress'], 114 reporters: ['dots', 'progress'],
84
85 115
86 // web server port 116 // web server port
87 port: 9876, 117 port: 9876,
...@@ -106,46 +136,6 @@ module.exports = function(config) { ...@@ -106,46 +136,6 @@ module.exports = function(config) {
106 build: process.env.TRAVIS_BUILD_NUMBER, 136 build: process.env.TRAVIS_BUILD_NUMBER,
107 testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH, 137 testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH,
108 recordScreenshots: false 138 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 } 139 }
149
150 }); 140 });
151 }; 141 };
......