|
| 1 | +// Karma configuration |
| 2 | +// Generated on Wed Nov 11 2015 19:12:34 GMT+0100 (CET) |
| 3 | + |
| 4 | +module.exports = function(config) { |
| 5 | + |
| 6 | + var jqueryVersion = process.env.JQUERY_VERSION; |
| 7 | + var highchartsVersion = process.env.HIGHCHARTS_VERSION; |
| 8 | + |
| 9 | + // Browsers to run on Sauce Labs |
| 10 | + var customLaunchers = { |
| 11 | + 'SL_Chrome': { |
| 12 | + base: 'SauceLabs', |
| 13 | + browserName: 'chrome' |
| 14 | + }, |
| 15 | + 'SL_InternetExplorer': { |
| 16 | + base: 'SauceLabs', |
| 17 | + browserName: 'internet explorer', |
| 18 | + version: '10' |
| 19 | + }, |
| 20 | + 'SL_FireFox': { |
| 21 | + base: 'SauceLabs', |
| 22 | + browserName: 'firefox', |
| 23 | + version: '37' |
| 24 | + } |
| 25 | + }; |
| 26 | + |
| 27 | + config.set({ |
| 28 | + |
| 29 | + // base path that will be used to resolve all patterns (eg. files, exclude) |
| 30 | + basePath: '', |
| 31 | + |
| 32 | + |
| 33 | + // frameworks to use |
| 34 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 35 | + frameworks: ['jasmine'], |
| 36 | + |
| 37 | + |
| 38 | + // list of files / patterns to load in the browser |
| 39 | + files: [ |
| 40 | + 'http://code.jquery.com/jquery-' + jqueryVersion + '.min.js', |
| 41 | + 'http://code.highcharts.com/' + highchartsVersion + '/highcharts.js', |
| 42 | + 'jquery.highchartTable.js', |
| 43 | + 'tests/*Spec.js' |
| 44 | + ], |
| 45 | + |
| 46 | + |
| 47 | + // list of files to exclude |
| 48 | + exclude: [ |
| 49 | + ], |
| 50 | + |
| 51 | + |
| 52 | + // preprocess matching files before serving them to the browser |
| 53 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 54 | + preprocessors: { |
| 55 | + }, |
| 56 | + |
| 57 | + |
| 58 | + // test results reporter to use |
| 59 | + // possible values: 'dots', 'progress' |
| 60 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 61 | + reporters: ['progress', 'saucelabs'], |
| 62 | + |
| 63 | + |
| 64 | + // web server port |
| 65 | + port: 9876, |
| 66 | + |
| 67 | + |
| 68 | + // enable / disable colors in the output (reporters and logs) |
| 69 | + colors: true, |
| 70 | + |
| 71 | + |
| 72 | + // level of logging |
| 73 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 74 | + logLevel: config.LOG_INFO, |
| 75 | + |
| 76 | + |
| 77 | + // enable / disable watching file and executing tests whenever any file changes |
| 78 | + autoWatch: true, |
| 79 | + |
| 80 | + sauceLabs: { |
| 81 | + testName: 'HighchartTable tests / jquery ' + jqueryVersion + ' / highcharts ' + highchartsVersion |
| 82 | + }, |
| 83 | + |
| 84 | + captureTimeout: 120000, |
| 85 | + customLaunchers: customLaunchers, |
| 86 | + |
| 87 | + // start these browsers |
| 88 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 89 | + browsers: Object.keys(customLaunchers), |
| 90 | + |
| 91 | + |
| 92 | + // Continuous Integration mode |
| 93 | + // if true, Karma captures browsers, runs the tests and exits |
| 94 | + singleRun: true, |
| 95 | + |
| 96 | + // Concurrency level |
| 97 | + // how many browser should be started simultanous |
| 98 | + concurrency: Infinity |
| 99 | + }) |
| 100 | +} |
0 commit comments