1 | // Karma configuration
|
2 | // Generated on Wed Mar 19 2014 12:00:53 GMT-0700 (PDT)
|
3 |
|
4 | module.exports = function(config) {
|
5 | config.set({
|
6 |
|
7 | // base path that will be used to resolve all patterns (eg. files, exclude)
|
8 | basePath: '',
|
9 |
|
10 |
|
11 | // frameworks to use
|
12 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
13 | frameworks: ['mocha'],
|
14 |
|
15 |
|
16 | // list of files / patterns to load in the browser
|
17 | files: [
|
18 | 'test/kd.libs.js',
|
19 | 'test/kd.test.js'
|
20 | ],
|
21 |
|
22 | sauceLabs: {
|
23 | username: process.env.SAUCE_USERNAME,
|
24 | accessKey: process.env.SAUCE_ACCESS_KEY,
|
25 | startConnect: true,
|
26 | testName: 'KD tests'
|
27 | },
|
28 |
|
29 | // define SauceLabs browsers
|
30 | customLaunchers: {
|
31 |
|
32 | sl_firefox_windows: {
|
33 | base: 'SauceLabs',
|
34 | browserName: 'firefox',
|
35 | platform: 'Windows 7'
|
36 | },
|
37 |
|
38 | sl_chrome_windows: {
|
39 | base: 'SauceLabs',
|
40 | browserName: 'chrome',
|
41 | platform: 'Windows 7'
|
42 | },
|
43 |
|
44 | sl_ie_9: {
|
45 | base: 'SauceLabs',
|
46 | browserName: 'internet explorer',
|
47 | platform: 'Windows 7',
|
48 | version: '9'
|
49 | },
|
50 |
|
51 | sl_ie_10: {
|
52 | base: 'SauceLabs',
|
53 | browserName: 'internet explorer',
|
54 | platform: 'Windows 7',
|
55 | version: '10'
|
56 | }
|
57 | },
|
58 |
|
59 | // list of files to exclude
|
60 | exclude: [
|
61 |
|
62 | ],
|
63 |
|
64 |
|
65 | // preprocess matching files before serving them to the browser
|
66 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
67 | preprocessors: {
|
68 |
|
69 | },
|
70 |
|
71 |
|
72 | // test results reporter to use
|
73 | // possible values: 'dots', 'progress'
|
74 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
75 | reporters: ['spec'],
|
76 |
|
77 |
|
78 | // web server port
|
79 | port: 9876,
|
80 |
|
81 |
|
82 | // enable / disable colors in the output (reporters and logs)
|
83 | colors: true,
|
84 |
|
85 |
|
86 | // level of logging
|
87 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
88 | logLevel: config.LOG_INFO,
|
89 |
|
90 |
|
91 | // enable / disable watching file and executing tests whenever any file changes
|
92 | autoWatch: true,
|
93 |
|
94 |
|
95 | // start these browsers
|
96 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
97 | browsers: ['Chrome', 'Firefox'],
|
98 |
|
99 |
|
100 | // Continuous Integration mode
|
101 | // if true, Karma captures browsers, runs the tests and exits
|
102 | singleRun: false
|
103 | });
|
104 | };
|