Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 4e72c8a

Browse files
authored
Update the way we run tests to the new way (#36)
PBI:30145 Task:30375 * Update the way we run tests to the new way * Update src/test/runTest.ts Co-Authored-By: DIGarnier <[email protected]> * Update src/test/suite/extension.test.ts Co-Authored-By: DIGarnier <[email protected]> * Remove uneeded loging and commented code
1 parent 0ae3d1b commit 4e72c8a

File tree

8 files changed

+2494
-2857
lines changed

8 files changed

+2494
-2857
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ out/
88
!locales/**/out/
99
package.nls.*.json
1010

11+
# testing
12+
.vscode-test
13+
1114
# User-specific files
1215
*.suo
1316
*.user

.vscode/launch.json

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,28 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [{
8-
"name": "Run Extension",
9-
"type": "extensionHost",
10-
"request": "launch",
11-
"runtimeExecutable": "${execPath}",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/out/**/*.js"
17-
],
18-
"preLaunchTask": "npm: watch"
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"runtimeExecutable": "${execPath}",
25-
"args": [
26-
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test"
28-
],
29-
"outFiles": [
30-
"${workspaceFolder}/out/test/**/*.js"
31-
],
32-
"preLaunchTask": "npm: watch"
33-
}
34-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15+
"preLaunchTask": "npm: watch"
16+
},
17+
{
18+
"name": "Extension Tests",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"runtimeExecutable": "${execPath}",
22+
"args": [
23+
"--extensionDevelopmentPath=${workspaceFolder}",
24+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
25+
],
26+
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
27+
"preLaunchTask": "npm: watch"
28+
}
29+
]
3530
}

0 commit comments

Comments
 (0)