Skip to content

Commit 41b661e

Browse files
committed
Add process.arch into unit test results file names
1 parent 197b0fc commit 41b661e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/browser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const withReporter = (function () {
4545
new MochaJUnitReporter(runner, {
4646
reporterOptions: {
4747
testsuitesTitle: `${argv.tfs} ${process.platform}`,
48-
mochaFile: process.env.BUILD_ARTIFACTSTAGINGDIRECTORY ? path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY, `test-results/${process.platform}-${browserType}-${argv.tfs.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`) : undefined
48+
mochaFile: process.env.BUILD_ARTIFACTSTAGINGDIRECTORY ? path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY, `test-results/${process.platform}-${process.arch}-${browserType}-${argv.tfs.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`) : undefined
4949
}
5050
});
5151
}

test/unit/electron/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ app.on('ready', () => {
143143
new MochaJUnitReporter(runner, {
144144
reporterOptions: {
145145
testsuitesTitle: `${argv.tfs} ${process.platform}`,
146-
mochaFile: process.env.BUILD_ARTIFACTSTAGINGDIRECTORY ? path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY, `test-results/${process.platform}-${argv.tfs.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`) : undefined
146+
mochaFile: process.env.BUILD_ARTIFACTSTAGINGDIRECTORY ? path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY, `test-results/${process.platform}-${process.arch}-${argv.tfs.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`) : undefined
147147
}
148148
});
149149
} else {

0 commit comments

Comments
 (0)