forked from CharlesJUDITH/centreon-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.config.coffee
60 lines (50 loc) · 1.4 KB
/
karma.config.coffee
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
59
60
module.exports = (config) ->
config.set
basePath: ""
frameworks: [
"jasmine"
"requirejs"
]
files: [
{
pattern: "web/js/test/unit/test-main.js"
included: true
}
{
pattern: "web/bundles/**/*.js"
included: false
}
{
pattern: "web/js/**/*.js"
included: false
}
{
pattern: "web/js/test/unit/**/*.specs.js"
included: false
}
]
exclude: [
"web/js/main.js"
]
preprocessors :
'web/js/controllers/**/*.js' : 'coverage'
'web/js/directives/**/*.js' : 'coverage'
'web/js/factories/**/*.js' : 'coverage'
'web/js/filters/**/*.js' : 'coverage'
'web/js/services/**/*.js' : 'coverage'
reporters: ['progress', 'junit', 'coverage']
junitReporter :
outputFile: 'web/reports/test-results.xml'
coverageReporter :
type : 'html'
dir : 'web/reports/'
file: 'coverage.xml'
subdir: '.',
port: 8082
colors: true
logLevel: config.LOG_INFO
autoWatch: true
browsers: ["PhantomJS"]
captureTimeout: 60000
singleRun: true
return