194 строки
7.1 KiB
JSON
194 строки
7.1 KiB
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
{
|
|
"version": "0.1.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceFolder}"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/dist/**/*.js"
|
|
],
|
|
"env": {
|
|
"CMT_DEVRUN": "1"
|
|
},
|
|
"preLaunchTask": "build-with-webpack-watch",
|
|
"smartStep": false
|
|
},
|
|
{
|
|
"name": "Run Unit Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/unit-tests/test-project-without-cmakelists",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/unit-tests/index"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/src/**",
|
|
"${workspaceFolder}/out/test/**",
|
|
"${workspaceFolder}/out/test/unit-tests/**",
|
|
],
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"TEST_FILTER": ".*"
|
|
},
|
|
"preLaunchTask": "Pretest"
|
|
},
|
|
{
|
|
"name": "Run Integration Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/integration-tests",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/integration-tests/index"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/src/**",
|
|
"${workspaceFolder}/out/test/**",
|
|
"${workspaceFolder}/out/test/integration-tests/**",
|
|
],
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"TEST_FILTER": ".*"
|
|
},
|
|
"preLaunchTask": "Pretest"
|
|
},
|
|
{
|
|
"name": "Run successful-build Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/end-to-end-tests/successful-build/project-folder",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/end-to-end-tests/successful-build/index"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/src/**",
|
|
"${workspaceFolder}/out/test/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/successful-build/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/successful-build/test/*"
|
|
],
|
|
"preLaunchTask": "Pretest",
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"TEST_FILTER": ".*"
|
|
},
|
|
},
|
|
{
|
|
"name": "Run single-root-UI Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/end-to-end-tests/single-root-UI/project-folder",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/end-to-end-tests/single-root-UI/index"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/src/**",
|
|
"${workspaceFolder}/out/test/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/single-root-UI/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/single-root-UI/test/*"
|
|
],
|
|
"preLaunchTask": "Pretest",
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"TEST_FILTER": ".*"
|
|
},
|
|
},
|
|
{
|
|
"name": "Run multi-root-UI Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/end-to-end-tests/multi-root-UI/project-workspace.code-workspace",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/end-to-end-tests/multi-root-UI/index"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/src/**",
|
|
"${workspaceFolder}/out/test/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/multi-root-UI/*",
|
|
"${workspaceFolder}/out/test/end-to-end-tests/multi-root-UI/test/*"
|
|
],
|
|
"preLaunchTask": "Pretest",
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"TEST_FILTER": ".*"
|
|
},
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Run Backend Unit tests",
|
|
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
|
"args": [
|
|
"-u",
|
|
"tdd",
|
|
"--timeout",
|
|
"999999",
|
|
"--colors",
|
|
"-r",
|
|
"ts-node/register",
|
|
"-r",
|
|
"tsconfig-paths/register",
|
|
"${workspaceFolder}/test/unit-tests/backend/**/*.test.ts"
|
|
],
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "Run Smoke Tests",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"${workspaceFolder}/test/smoke/_project-dir",
|
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
"--extensionTestsPath=${workspaceFolder}/out/test/smoke",
|
|
"--disable-extensions"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/*",
|
|
"${workspaceFolder}/out/test/**"
|
|
],
|
|
"preLaunchTask": "Pretest",
|
|
"env": {
|
|
"CMT_TESTING": "1",
|
|
"CMT_QUIET_CONSOLE": "1",
|
|
"CMT_SMOKE_DIR": "${workspaceFolder}/test/smoke"
|
|
}
|
|
}
|
|
]
|
|
}
|