1
- var webpackConf = require ( './webpack.config.js' ) ;
2
- module . exports = function ( config ) {
1
+ var webpackConf = require ( './webpack.config.js' )
2
+ module . exports = function ( config ) {
3
3
config . set ( {
4
- basePath :'' ,
4
+ basePath : '' ,
5
5
frameworks : [ 'jasmine' ] ,
6
6
files : [ { pattern : './tests/unit/spec-bundle.js' , watched : false } ] ,
7
- preprocessors : { './tests/unit/spec-bundle.js' : [ 'coverage' , ' webpack', 'sourcemap' ] } ,
7
+ preprocessors : { './tests/unit/spec-bundle.js' : [ 'webpack' , 'sourcemap' ] } ,
8
8
webpack : {
9
9
module : webpackConf . module ,
10
10
resolve : webpackConf . resolve
@@ -13,31 +13,22 @@ module.exports = function (config) {
13
13
noInfo : true ,
14
14
stats : 'errors-only'
15
15
} ,
16
- reporters : [ 'kjhtml' , 'spec' , 'coverage' ] ,
17
- // optionally, configure the reporter
18
- coverageReporter : {
19
- // specify a common output directory
20
- dir : './tests/build/reports/coverage' ,
21
- reporters : [
22
- // reporters not supporting the `file` property
23
- { type : 'html' , subdir : 'report-html' } ,
24
- { type : 'lcov' , subdir : 'report-lcov' } ,
25
- // reporters supporting the `file` property, use `subdir` to directly
26
- // output them in the `dir` directory
27
- { type : 'cobertura' , subdir : '.' , file : 'cobertura.txt' } ,
28
- { type : 'lcovonly' , subdir : '.' , file : 'report-lcovonly.txt' } ,
29
- { type : 'teamcity' , subdir : '.' , file : 'teamcity.txt' } ,
30
- { type : 'text' , subdir : '.' , file : 'text.txt' } ,
31
- { type : 'text-summary' , subdir : '.' , file : 'text-summary.txt' } ,
32
- ]
33
- } ,
16
+ reporters : [ 'spec' , 'coverage-istanbul' ] ,
34
17
specReporter : {
35
- maxLogLines : 5 , // limit number of lines logged per test
36
- suppressErrorSummary : true , // do not print error summary
37
- suppressFailed : false , // do not print information about failed tests
38
- suppressPassed : false , // do not print information about passed tests
39
- suppressSkipped : true , // do not print information about skipped tests
40
- showSpecTiming : false // print the time elapsed for each spec
18
+ maxLogLines : 5 , // limit number of lines logged per test
19
+ suppressErrorSummary : true , // do not print error summary
20
+ suppressFailed : false , // do not print information about failed tests
21
+ suppressPassed : false , // do not print information about passed tests
22
+ suppressSkipped : true , // do not print information about skipped tests
23
+ showSpecTiming : false // print the time elapsed for each spec
24
+ } ,
25
+ coverageIstanbulReporter : {
26
+ reports : [ 'html' , 'lcov' , 'text-summary' ] ,
27
+ dir : './tests/coverage' , // coverage results needs to be saved under coverage/
28
+ fixWebpackSourcePaths : true ,
29
+ query : {
30
+ esModules : true
31
+ }
41
32
} ,
42
33
customLaunchers : {
43
34
Chrome_travis_ci : {
@@ -52,10 +43,9 @@ module.exports = function (config) {
52
43
browsers : [ 'Chrome' ] ,
53
44
singleRun : true ,
54
45
concurrency : Infinity
55
- } ) ;
56
-
46
+ } )
57
47
58
48
if ( process . env . TRAVIS ) {
59
- config . browsers = [ 'Chrome_travis_ci' ] ;
49
+ config . browsers = [ 'Chrome_travis_ci' ]
60
50
}
61
- } ;
51
+ }
0 commit comments