Skip to content

Commit

Permalink
Associate unit test debug sessions with the test runs (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Jul 12, 2024
1 parent 5ca50f3 commit bbbe1d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
],
"engines": {
"vscode": "^1.83.0"
"vscode": "^1.91.0"
},
"enabledApiProposals": [
"fileSearchProvider",
Expand Down Expand Up @@ -1777,7 +1777,7 @@
"test": "node ./out/test/runTest.js",
"lint": "eslint src/**",
"lint-fix": "eslint --fix src/**",
"download-api": "dts dev 1.83.0",
"download-api": "dts dev 1.91.0",
"postinstall": "npm run download-api"
},
"devDependencies": {
Expand All @@ -1786,7 +1786,7 @@
"@types/mocha": "^7.0.2",
"@types/node": "^14.18.0",
"@types/semver": "7.5.4",
"@types/vscode": "1.83.0",
"@types/vscode": "1.91.0",
"@types/ws": "8.5.4",
"@types/xmldom": "^0.1.29",
"@typescript-eslint/eslint-plugin": "^4.32.0",
Expand Down
18 changes: 11 additions & 7 deletions src/commands/unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,13 +891,17 @@ async function runHandler(
}
}
// Start the debugging session
startedDebugging = await vscode.debug.startDebugging(undefined, {
type: "objectscript",
request: "attach",
name: "Unit tests",
cspDebugId: queueResp.result.content.debugId,
isUnitTest: true,
});
startedDebugging = await vscode.debug.startDebugging(
undefined,
{
type: "objectscript",
request: "attach",
name: "Unit tests",
cspDebugId: queueResp.result.content.debugId,
isUnitTest: true,
},
{ testRun }
);
}

if (pollResp.retryafter) {
Expand Down

0 comments on commit bbbe1d8

Please sign in to comment.