Passed
Push — master ( 08a475...7f5c77 )
by Dmytro
02:21 queued 11s
created

tests/runTest.ts   A

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 17
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 17 2
1
import * as path from 'path';
2
3
import { runTests } from 'vscode-test';
4
5
async function main() {
6
    try {
7
        // The folder containing the Extension Manifest package.json
8
        // Passed to `--extensionDevelopmentPath`
9
        const extensionDevelopmentPath = path.resolve(__dirname, '../../');
10
11
        // The path to test runner
12
        // Passed to --extensionTestsPath
13
        const extensionTestsPath = path.resolve(__dirname, './suite/index');
14
15
        // Download VS Code, unzip it and run the integration test
16
        await runTests({ extensionDevelopmentPath, extensionTestsPath });
17
    } catch (err) {
18
        console.error('runTest: ', err);
19
        console.error('Failed to run tests');
20
        process.exit(1);
21
    }
22
}
23
24
main();
25