tests/runTest.ts   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 25
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 16
mnd 1
bc 1
fnc 1
dl 0
loc 25
bpm 1
cpm 2
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A runTest.ts ➔ main 0 18 2
1
import path from 'path';
2
import { runTests } from 'vscode-test';
3
4
async function main() {
5
    try {
6
        // The folder containing the Extension Manifest package.json
7
        // Passed to `--extensionDevelopmentPath`
8
        const extensionDevelopmentPath = path.resolve(__dirname, '../../');
9
10
        // The path to test runner
11
        // Passed to --extensionTestsPath
12
        const extensionTestsPath = path.resolve(__dirname, './suite/index');
13
14
        // Download VS Code, unzip it and run the integration test
15
        await runTests({ extensionDevelopmentPath, extensionTestsPath });
16
    } catch (error) {
17
        console.error('runTest:', error);
18
        console.error('Failed to run tests');
19
        // eslint-disable-next-line no-process-exit
20
        process.exit(1);
21
    }
22
}
23
24
main();
25