Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/vscode-colorize-perf-tests/src/index.ts
3274 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import * as path from 'path';
7
import * as testRunner from '../../../test/integration/electron/testrunner';
8
9
const suite = 'Performance Colorize Tests';
10
11
const options: import('mocha').MochaOptions = {
12
ui: 'tdd',
13
color: true,
14
timeout: 60000
15
};
16
17
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY || process.env.GITHUB_WORKSPACE) {
18
options.reporter = 'mocha-multi-reporters';
19
options.reporterOptions = {
20
reporterEnabled: 'spec, mocha-junit-reporter',
21
mochaJunitReporterReporterOptions: {
22
testsuitesTitle: `${suite} ${process.platform}`,
23
mochaFile: path.join(
24
process.env.BUILD_ARTIFACTSTAGINGDIRECTORY || process.env.GITHUB_WORKSPACE || __dirname,
25
`test-results/${process.platform}-${process.arch}-${suite.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`)
26
}
27
};
28
}
29
30
testRunner.configure(options);
31
32
export = testRunner;
33
34