mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
* add an extension for integration tests * setup ads before running test * test setup * test cases * bash script * shorter temp folder name * code cleanup * add commented out original code * fix test error * test result path * rename results file * change file path * report smoke test results * test stablize * test stablization and configurable test servers * fix smoke test error * connection provider * simplify the integration test script * add comment * fix tslint error * address PR comments * add temp log to check whether the environment variable is already set * remove temp log * move api definition to testapi typing file * exclude integration tests extension * address comments
191 lines
4.1 KiB
JSON
191 lines
4.1 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Gulp Build",
|
|
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
|
"stopOnEntry": true,
|
|
"args": [
|
|
"hygiene"
|
|
],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Extension Host",
|
|
"protocol": "inspector",
|
|
"port": 5870,
|
|
"restart": true,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Shared Process",
|
|
"protocol": "inspector",
|
|
"port": 5871,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"protocol": "inspector",
|
|
"name": "Attach to Search Process",
|
|
"port": 5876,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to CLI Process",
|
|
"protocol": "inspector",
|
|
"port": 5874,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Main Process",
|
|
"protocol": "inspector",
|
|
"port": 5875,
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "chrome",
|
|
"request": "attach",
|
|
"name": "Attach to azuredatastudio",
|
|
"port": 9222
|
|
},
|
|
{
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"name": "Launch azuredatastudio",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.bat"
|
|
},
|
|
"osx": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.sh"
|
|
},
|
|
"linux": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.sh"
|
|
},
|
|
"urlFilter": "*index.html*",
|
|
"runtimeArgs": [
|
|
"--inspect=5875"
|
|
],
|
|
"skipFiles": [
|
|
"**/winjs*.js"
|
|
],
|
|
"webRoot": "${workspaceFolder}",
|
|
"timeout": 45000
|
|
},
|
|
{
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"name": "Launch azuredatastudio with new notebook command",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.bat"
|
|
},
|
|
"osx": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.sh"
|
|
},
|
|
"linux": {
|
|
"runtimeExecutable": "${workspaceFolder}/scripts/sql.sh"
|
|
},
|
|
"urlFilter": "*index.html*",
|
|
"runtimeArgs": [
|
|
"--inspect=5875",
|
|
"--command=notebook.command.new"
|
|
],
|
|
"skipFiles": [
|
|
"**/winjs*.js"
|
|
],
|
|
"webRoot": "${workspaceFolder}",
|
|
"timeout": 45000
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Unit Tests",
|
|
"protocol": "inspector",
|
|
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Azure Data Studio.app/Contents/MacOS/Electron",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/azuredatastudio.exe"
|
|
},
|
|
"linux": {
|
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/azuredatastudio"
|
|
},
|
|
"stopOnEntry": false,
|
|
"outputCapture": "std",
|
|
"args": [
|
|
"--delay",
|
|
"--timeout",
|
|
"2000"
|
|
],
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"ELECTRON_RUN_AS_NODE": "true"
|
|
},
|
|
"outFiles": [
|
|
"${workspaceFolder}/out/**/*.js"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch Built-in Extension",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
"--extensionDevelopmentPath=${workspaceRoot}/extensions/debug-auto-launch"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Launch Smoke Test",
|
|
"program": "${workspaceFolder}/test/smoke/test/index.js",
|
|
"cwd": "${workspaceFolder}/test/smoke",
|
|
"env": {
|
|
"BUILD_ARTIFACTSTAGINGDIRECTORY": "${workspaceFolder}"
|
|
}
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Debug azuredatastudio Main and Renderer",
|
|
"configurations": [
|
|
"Launch azuredatastudio",
|
|
"Attach to Main Process"
|
|
]
|
|
},
|
|
{
|
|
"name": "Search and Renderer processes",
|
|
"configurations": [
|
|
"Launch azuredatastudio",
|
|
"Attach to Search Process"
|
|
]
|
|
},
|
|
{
|
|
"name": "Renderer and Extension Host processes",
|
|
"configurations": [
|
|
"Launch azuredatastudio",
|
|
"Attach to Extension Host"
|
|
]
|
|
}
|
|
]
|
|
}
|