File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
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 (中国标准时间)
33var fileUtil = require ( 'karma-sonarqube-unit-reporter/src/file-util.js' ) ;
4+ const testPath = [ './test' ] ;
5+ const testFilePattern = 'Spec.js' ;
6+ const filesForDescriptions = fileUtil . getFilesForDescriptions ( testPath , testFilePattern ) ;
47module . exports = function ( config ) {
58 // 设置测试的超时时间
69
@@ -137,9 +140,6 @@ module.exports = function (config) {
137140 sonarQubeVersion : 'LATEST' ,
138141 outputFile : 'testcoverage/ut_report.xml' ,
139142 filenameFormatter : ( nextPath , result ) => {
140- const testPath = [ './test' ] ;
141- const testFilePattern = 'Spec.js' ;
142- const filesForDescriptions = fileUtil . getFilesForDescriptions ( testPath , testFilePattern ) ;
143143 return filesForDescriptions [ nextPath ] ;
144144 } ,
145145 useBrowserName : false
You can’t perform that action at this time.
0 commit comments