Skip to content

Commit 5c27159

Browse files
committed
Allow running the current file as a razor integration test
1 parent 1b480d9 commit 5c27159

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,34 @@
4343
],
4444
"preLaunchTask": "buildDev"
4545
},
46+
{
47+
"name": "Launch Current File BasicRazorApp2_1 Integration Tests",
48+
"type": "extensionHost",
49+
"request": "launch",
50+
"runtimeExecutable": "${execPath}",
51+
"args": [
52+
// Create a temp profile that has no extensions / user settings.
53+
// This allows us to only have the C# extension + the dotnet runtime installer extension dependency.
54+
"--profile-temp",
55+
"${workspaceRoot}/test/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
56+
"--extensionDevelopmentPath=${workspaceRoot}",
57+
"--extensionTestsPath=${workspaceRoot}/out/test/razorIntegrationTests",
58+
],
59+
"env": {
60+
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
61+
"TEST_FILE_FILTER": "${file}"
62+
},
63+
"sourceMaps": true,
64+
"outFiles": [
65+
"${workspaceRoot}/dist/*.js",
66+
"${workspaceRoot}/out/test/**/*.js"
67+
],
68+
"resolveSourceMapLocations": [
69+
"${workspaceFolder}/**",
70+
"!**/node_modules/**"
71+
],
72+
"preLaunchTask": "buildDev"
73+
},
4674
{
4775
"name": "Omnisharp: Launch Current File Integration Tests",
4876
"type": "extensionHost",

0 commit comments

Comments
 (0)