File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Karma configuration
2
2
// Generated on Fri Feb 17 2017 15:57:25 GMT+0800 (中国标准时间)
3
-
3
+ var fileUtil = require ( 'karma-sonarqube-unit-reporter/src/file-util.js' )
4
4
module . exports = function ( config ) {
5
5
// 设置测试的超时时间
6
6
@@ -136,10 +136,13 @@ module.exports = function (config) {
136
136
sonarQubeUnitReporter : {
137
137
sonarQubeVersion : 'LATEST' ,
138
138
outputFile : 'testcoverage/ut_report.xml' ,
139
- overrideTestDescription : true ,
140
- testPath : './test' ,
141
- testPaths : [ './test' ] ,
142
- testFilePattern : '.spec.js' ,
139
+ filenameFormatter : ( nextPath , result ) => {
140
+ const testPath = [ './test' ] ;
141
+ const testFilePattern = '.spec.js' ;
142
+ const filesForDescriptions = fileUtil . getFilesForDescriptions ( testPath , testFilePattern ) ;
143
+ const filePath = filesForDescriptions [ nextPath ] ;
144
+ return 'frontend/' + filePath ;
145
+ } ,
143
146
useBrowserName : false
144
147
} ,
145
148
// web server port
You can’t perform that action at this time.
0 commit comments