forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
24 lines (22 loc) · 989 Bytes
/
Copy pathindex.ts
File metadata and controls
24 lines (22 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// tslint:disable-next-line:no-any
if ((Reflect as any).metadata === undefined) {
// tslint:disable-next-line:no-require-imports no-var-requires
require('reflect-metadata');
}
import { workspace } from 'vscode';
import { MochaSetupOptions } from 'vscode/lib/testrunner';
import * as testRunner from './testRunner';
process.env.VSC_PYTHON_CI_TEST = '1';
process.env.IS_MULTI_ROOT_TEST = (Array.isArray(workspace.workspaceFolders) && workspace.workspaceFolders.length > 1);
// You can directly control Mocha options by uncommenting the following lines.
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info.
// Hack, as retries is not supported as setting in tsd.
// tslint:disable-next-line:no-any
const options: MochaSetupOptions & { retries: number } = {
ui: 'tdd',
useColors: true,
timeout: 25000,
retries: 3
};
testRunner.configure(options, { coverageConfig: '../coverconfig.json' });
module.exports = testRunner;