Skip to content

Commit 62dae92

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Karma configuration
22
// Generated on Fri Feb 17 2017 15:57:25 GMT+0800 (中国标准时间)
33
var 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);
47
module.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

0 commit comments

Comments
 (0)