File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11// Karma configuration
22// Generated on Fri Feb 17 2017 15:57:25 GMT+0800 (中国标准时间)
3- var fileUtil = require ( 'karma-sonarqube-unit-reporter/src/file-util.js' )
3+ var fileUtil = require ( 'karma-sonarqube-unit-reporter/src/file-util.js' ) ;
44module . exports = function ( config ) {
55 // 设置测试的超时时间
66
@@ -138,10 +138,9 @@ module.exports = function (config) {
138138 outputFile : 'testcoverage/ut_report.xml' ,
139139 filenameFormatter : ( nextPath , result ) => {
140140 const testPath = [ './test' ] ;
141- const testFilePattern = '.spec .js' ;
141+ const testFilePattern = 'Spec .js' ;
142142 const filesForDescriptions = fileUtil . getFilesForDescriptions ( testPath , testFilePattern ) ;
143- const filePath = filesForDescriptions [ nextPath ] ;
144- return 'frontend/' + filePath ;
143+ return filesForDescriptions [ nextPath ] ;
145144 } ,
146145 useBrowserName : false
147146 } ,
You can’t perform that action at this time.
0 commit comments