-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.config.coffee
46 lines (40 loc) · 1.09 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
'use strict'
module.exports = (config) ->
config.set {
frameworks : [
'angular', 'angular-filesort'
'jasmine', 'should'
]
browsers : [
'PhantomJS'
]
angular : [
'route'
'animate'
'messages'
'mocks'
]
singleRun : true
captureTimeout : 120 * 1000 #ms
preprocessors:
'**/*.coffee': ['coffee', 'coverage']
'src/**/*.js': ['coverage']
coffeePreprocessor:
options:
bare : true
sourceMap : false
transformPath: (path) ->
path.replace /\.coffee$/, '.js'
reporters: [
'story'
'junit'
'coverage'
]
junitReporter:
outputDir : "#{__dirname}/test/reports/junit/"
suite : 'unit'
coverageReporter :
type : 'cobertura'
dir : "#{__dirname}/test/reports/coverage/"
}
return