Skip to content

Commit b52dca8

Browse files
committed
【update】sonar ut report review by xiongjj
1 parent c2aab9a commit b52dca8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/karma.conf.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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');
44
module.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
},

0 commit comments

Comments
 (0)