|
2 | 2 | // Generated on Tue Mar 11 2014 15:30:22 GMT+0100 (CET)
|
3 | 3 |
|
4 | 4 |
|
5 |
| - |
6 |
| -/* |
7 |
| - if (require('os').platform() === 'darwin') { |
8 |
| - browsers.push('Safari') |
9 |
| - } |
10 |
| -*/ |
11 |
| - |
12 |
| - |
13 | 5 | module.exports = function(config) {
|
| 6 | +//console.log(process); |
| 7 | +//console.log(require('os').platform()); // darwin |
14 | 8 |
|
15 | 9 | browserToTestIn = ['PhantomJS'];
|
| 10 | + //browserToTestIn = ['Chrome']; // Use when we need debug 8It would be nice to detect debug mode) |
16 | 11 | if (process.env.TRAVISCI) {
|
17 | 12 | browserToTestIn = ['Firefox'];
|
18 | 13 | }
|
19 | 14 |
|
20 |
| - |
21 | 15 | config.set({
|
22 |
| - |
23 |
| - // base path that will be used to resolve all patterns (eg. files, exclude) |
24 | 16 | basePath: '',
|
25 |
| - |
26 |
| - |
27 |
| - // frameworks to use |
28 |
| - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
29 | 17 | frameworks: ['jasmine'],
|
30 | 18 |
|
| 19 | + browsers: browserToTestIn, |
31 | 20 |
|
32 |
| - // list of files / patterns to load in the browser |
33 |
| - files: [ |
| 21 | + files: [ |
34 | 22 | 'lib/angular/angular.min.js',
|
35 | 23 | 'lib/angular/angular-mocks.js',
|
36 | 24 | 'js/*.js',
|
37 | 25 | 'test/*.js'
|
38 | 26 | ],
|
39 | 27 |
|
40 |
| - |
41 |
| - // list of files to exclude |
42 |
| - exclude: [ |
43 |
| - |
44 |
| - ], |
45 |
| - |
46 |
| - |
47 |
| - // preprocess matching files before serving them to the browser |
48 |
| - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
49 |
| - preprocessors: { |
50 |
| - |
51 |
| - }, |
52 |
| - |
53 |
| - |
54 |
| - // test results reporter to use |
55 | 28 | // possible values: 'dots', 'progress'
|
56 |
| - // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
57 | 29 | reporters: ['progress'],
|
58 | 30 |
|
59 |
| - |
60 | 31 | // web server port
|
61 |
| - // port: 9876, |
62 |
| - |
| 32 | + // port: 9876, |
63 | 33 |
|
64 | 34 | // enable / disable colors in the output (reporters and logs)
|
65 | 35 | colors: true,
|
66 | 36 |
|
67 |
| - |
68 | 37 | // level of logging
|
69 | 38 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
70 | 39 | logLevel: config.LOG_INFO,
|
71 | 40 |
|
72 |
| - |
73 | 41 | // enable / disable watching file and executing tests whenever any file changes
|
74 | 42 | autoWatch: false,
|
75 | 43 |
|
76 |
| - |
77 |
| - // start these browsers |
78 |
| - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
79 |
| - // browsers: ['Chrome'], |
80 |
| -// browsers: ['PhantomJS','Chrome'], |
81 |
| - // browsers: ['PhantomJS'], |
82 |
| - browsers: browserToTestIn, |
83 |
| - |
84 | 44 | plugins : [
|
85 | 45 | 'karma-phantomjs-launcher',
|
86 | 46 | 'karma-junit-reporter',
|
87 | 47 | 'karma-firefox-launcher',
|
| 48 | + 'karma-chrome-launcher', |
88 | 49 | 'karma-jasmine'
|
89 | 50 | ],
|
90 | 51 |
|
|
0 commit comments