Skip to content

Commit 1bfd2e3

Browse files
committed
some fixes for tests
1 parent 8ef3dfb commit 1bfd2e3

14 files changed

+624
-2116
lines changed

Diff for: .snyk

-30
This file was deleted.

Diff for: .vscode/launch.json

+20-6
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,44 @@
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
10-
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceRoot}"],
10+
"args": [
11+
"--disable-extensions",
12+
"--extensionDevelopmentPath=${workspaceRoot}"
13+
],
1114
"stopOnEntry": false,
1215
"sourceMaps": true,
13-
"outFiles": ["${workspaceRoot}/out/**/*.js"],
16+
"outFiles": [
17+
"${workspaceRoot}/out/**/*.js"
18+
],
1419
"preLaunchTask": "npm: watch"
1520
},
1621
{
1722
"name": "Launch Extension",
1823
"type": "extensionHost",
1924
"request": "launch",
2025
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
26+
"args": [
27+
"--extensionDevelopmentPath=${workspaceRoot}"
28+
],
2229
"stopOnEntry": false,
2330
"sourceMaps": true,
24-
"outFiles": ["${workspaceRoot}/out/**/*.js"],
31+
"outFiles": [
32+
"${workspaceRoot}/out/**/*.js"
33+
],
2534
"preLaunchTask": "npm: watch"
2635
},
2736
{
2837
"name": "Extension Tests",
2938
"type": "extensionHost",
3039
"request": "launch",
3140
"runtimeExecutable": "${execPath}",
32-
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
33-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
41+
"args": [
42+
"--extensionDevelopmentPath=${workspaceFolder}",
43+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
44+
],
45+
"outFiles": [
46+
"${workspaceFolder}/out/test/**/*.js"
47+
],
3448
"preLaunchTask": "npm: watch"
3549
}
3650
]

Diff for: build.yml

+23-11
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ trigger:
33
include:
44
- master
55
tags:
6-
include:
6+
include:
77
- v*
8-
8+
99
jobs:
1010
- job: Windows
1111
pool:
1212
name: Hosted VS2017
1313
demands: npm
1414
steps:
1515
- task: NodeTool@0
16-
displayName: 'Use Node 8.x'
16+
displayName: 'Use Node 10.x'
1717
inputs:
18-
versionSpec: 8.x
18+
versionSpec: 10.x
1919
- task: Npm@1
2020
displayName: 'Install dependencies'
2121
inputs:
@@ -26,17 +26,21 @@ jobs:
2626
command: custom
2727
verbose: false
2828
customCommand: 'run compile'
29-
- script: 'node node_modules/vscode/bin/test'
29+
- task: Npm@1
3030
displayName: 'Run tests'
31+
inputs:
32+
command: custom
33+
verbose: false
34+
customCommand: 'run test'
3135
- job: macOS
3236
pool:
3337
name: Hosted macOS
3438
demands: npm
3539
steps:
3640
- task: NodeTool@0
37-
displayName: 'Use Node 8.x'
41+
displayName: 'Use Node 10.x'
3842
inputs:
39-
versionSpec: 8.x
43+
versionSpec: 10.x
4044
- task: Npm@1
4145
displayName: 'Install dependencies'
4246
inputs:
@@ -47,17 +51,21 @@ jobs:
4751
command: custom
4852
verbose: false
4953
customCommand: 'run compile'
50-
- script: 'node node_modules/vscode/bin/test'
54+
- task: Npm@1
5155
displayName: 'Run tests'
56+
inputs:
57+
command: custom
58+
verbose: false
59+
customCommand: 'run test'
5260
- job: Linux
5361
pool:
5462
name: Hosted Ubuntu 1604
5563
demands: npm
5664
steps:
5765
- task: NodeTool@0
58-
displayName: 'Use Node 8.x'
66+
displayName: 'Use Node 10.x'
5967
inputs:
60-
versionSpec: 8.x
68+
versionSpec: 10.x
6169
- task: Npm@1
6270
displayName: 'Install dependencies'
6371
inputs:
@@ -73,10 +81,14 @@ jobs:
7381
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
7482
disown -ar
7583
displayName: 'Start xvfb'
76-
- script: 'node node_modules/vscode/bin/test'
84+
- task: Npm@1
7785
displayName: 'Run tests'
7886
env:
7987
DISPLAY: :10
88+
inputs:
89+
command: custom
90+
verbose: false
91+
customCommand: 'run test'
8092
- task: Npm@1
8193
displayName: 'Package VSIX'
8294
inputs:

0 commit comments

Comments
 (0)