File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 7
7
.idea /
8
8
coverage /
9
9
.coverage
10
- karma /karma.conf.js
10
+ karma /karma.conf.js
11
+ html_tests /
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ module.exports = function ( karma ) {
34
34
"karma-coverage" ,
35
35
"karma-threshold-reporter" ,
36
36
"karma-coffee-preprocessor" ,
37
- "karma-mocha-reporter"
37
+ "karma-mocha-reporter" ,
38
+ "karma-htmlfile-reporter"
38
39
] ,
39
40
40
41
preprocessors : {
@@ -49,7 +50,8 @@ module.exports = function ( karma ) {
49
50
"progress" ,
50
51
"coverage" ,
51
52
"threshold" ,
52
- "mocha"
53
+ "mocha" ,
54
+ "html"
53
55
] ,
54
56
55
57
/**
@@ -83,6 +85,14 @@ module.exports = function ( karma ) {
83
85
"Chrome"
84
86
] ,
85
87
88
+ htmlReporter : {
89
+ outputFile : "html_tests/units.html" ,
90
+
91
+ // Optional
92
+ pageTitle : "Unit Tests" ,
93
+ subPageTitle : "A sample project description"
94
+ } ,
95
+
86
96
coverageReporter : {
87
97
dir : "coverage/" ,
88
98
reporters : [
Original file line number Diff line number Diff line change 45
45
"karma-sauce-launcher" : " ^0.2.14" ,
46
46
"karma-spec-reporter" : " 0.0.13" ,
47
47
"karma-threshold-reporter" : " ^0.1.12" ,
48
- "phantomjs" : " ^1.9.7-8"
48
+ "phantomjs" : " ^1.9.7-8" ,
49
+ "karma-htmlfile-reporter" : " ~0.2.2"
49
50
}
50
51
}
You can’t perform that action at this time.
0 commit comments