1 | // Karma configuration
|
2 | // Generated on Fri May 01 2015 13:45:17 GMT+0200 (W. Europe Daylight Time)
|
3 |
|
4 | module.exports = function(config) {
|
5 | config.set({
|
6 | // base path that will be used to resolve all patterns (eg. files, exclude)
|
7 | basePath: '',
|
8 |
|
9 | // frameworks to use
|
10 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
11 | frameworks: ['jasmine'],
|
12 |
|
13 | // list of files / patterns to load in the browser
|
14 | // The order is very important. `@require.js` must be loaded before jasmin specs.
|
15 | files: [
|
16 | 'spec-karma/mod/@require.js',
|
17 | 'spec-karma/mod/*.js',
|
18 | 'spec-karma/inc/*.js',
|
19 | 'spec-karma/*.spec.js'
|
20 | ],
|
21 |
|
22 | // For Trail-Passion services.
|
23 | proxies: {
|
24 | '/tfw': 'http://localhost/TP/tfw'
|
25 | },
|
26 |
|
27 | // test results reporter to use
|
28 | // possible values: 'dots', 'progress'
|
29 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
30 | reporters: ['progress'],
|
31 |
|
32 | // web server port
|
33 | port: 9876,
|
34 |
|
35 | // enable / disable colors in the output (reporters and logs)
|
36 | colors: true,
|
37 |
|
38 | // level of logging
|
39 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
40 | logLevel: config.LOG_INFO,
|
41 |
|
42 | // enable / disable watching file and executing tests whenever any file changes
|
43 | autoWatch: true,
|
44 |
|
45 | // start these browsers
|
46 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
47 | browsers: ['Chrome', 'Firefox'],
|
48 |
|
49 | // Continuous Integration mode
|
50 | // if true, Karma captures browsers, runs the tests and exits
|
51 | singleRun: false,
|
52 |
|
53 | // Send `console.log` to the console.
|
54 | "client.captureConsole": true
|
55 | });
|
56 | };
|