Path: blob/main/extensions/vscode-colorize-perf-tests/src/index.ts
3274 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import * as path from 'path';6import * as testRunner from '../../../test/integration/electron/testrunner';78const suite = 'Performance Colorize Tests';910const options: import('mocha').MochaOptions = {11ui: 'tdd',12color: true,13timeout: 6000014};1516if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY || process.env.GITHUB_WORKSPACE) {17options.reporter = 'mocha-multi-reporters';18options.reporterOptions = {19reporterEnabled: 'spec, mocha-junit-reporter',20mochaJunitReporterReporterOptions: {21testsuitesTitle: `${suite} ${process.platform}`,22mochaFile: path.join(23process.env.BUILD_ARTIFACTSTAGINGDIRECTORY || process.env.GITHUB_WORKSPACE || __dirname,24`test-results/${process.platform}-${process.arch}-${suite.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`)25}26};27}2829testRunner.configure(options);3031export = testRunner;323334