forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
58 lines (56 loc) · 1.6 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
var buildConfig = require('./build.config.js');
var path = require('canonical-path');
module.exports = {
files: [
// Include jQuery only for testing convience (lots of DOM checking for unit tests on directives)
'http://codeorigin.jquery.com/jquery-1.10.2.min.js',
'config/lib/js/angular/angular.js',
'config/lib/js/angular/angular-animate.js',
'config/lib/js/angular/angular-sanitize.js',
'config/lib/js/angular/angular-mocks.js',
'config/lib/js/angular-ui/angular-ui-router.js',
'config/lib/testutil.js'
]
.concat(buildConfig.ionicFiles)
.concat(buildConfig.angularIonicFiles)
.concat('test/unit/**/*.js'),
exclude: [
'js/ext/angular/test/dom-trace.js'
],
preprocessors: {
'js/**/*.js': 'coverage'
},
frameworks: ['jasmine'],
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
// possible values: 'OFF', 'ERROR', 'WARN', 'INFO', 'DEBUG'
logLevel: 'INFO',
autoWatch: true,
captureTimeout: 60000,
singleRun: false,
mochaReporter: {
output: 'full'
},
coverageReporter: {
reporters: [{
type: 'text'
}, {
type: 'text-summary'
}, {
type: 'cobertura',
file: 'coverage.xml'
}, {
type: 'lcov'
}]
},
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: ['Chrome']
};