Home | History | Annotate | Download | only in test
      1 module.exports = function(config) {
      2   var customLaunchers = {
      3     sl_chrome: {
      4       base: 'SauceLabs',
      5       browserName: 'chrome',
      6       platform: 'Windows 7'
      7     },
      8     sl_firefox: {
      9       base: 'SauceLabs',
     10       browserName: 'firefox',
     11       version: '27'
     12     },
     13     sl_ios_safari: {
     14       base: 'SauceLabs',
     15       browserName: 'iphone',
     16       platform: 'OS X 10.9',
     17       version: '7.1'
     18     },
     19     sl_ie_11: {
     20       base: 'SauceLabs',
     21       browserName: 'internet explorer',
     22       platform: 'Windows 8.1',
     23       version: '11'
     24     }
     25   };
     26 
     27   config.set({
     28     frameworks: ['mocha', 'chai'],
     29     plugins: [
     30       'karma-mocha',
     31       'karma-chai',
     32       'karma-sauce-launcher',
     33     ],
     34     sauceLabs: {
     35       testName: 'Web App Unit Tests'
     36     },
     37     customLaunchers: customLaunchers,
     38     browsers: Object.keys(customLaunchers),
     39     basePath: '..',
     40     files: [
     41       // Populated in `grunt test` task.
     42     ],
     43     singleRun: true,
     44     port: 9876,
     45     reporters: ['dots', 'saucelabs'],
     46     colors: true,
     47     autoWatch: false,
     48     captureTimeout: 300000,
     49   });
     50 };
     51