Skip to content

Commit bbbe1d8

Browse files
authored
Associate unit test debug sessions with the test runs (#1395)
1 parent 5ca50f3 commit bbbe1d8

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
],
4949
"engines": {
50-
"vscode": "^1.83.0"
50+
"vscode": "^1.91.0"
5151
},
5252
"enabledApiProposals": [
5353
"fileSearchProvider",
@@ -1777,7 +1777,7 @@
17771777
"test": "node ./out/test/runTest.js",
17781778
"lint": "eslint src/**",
17791779
"lint-fix": "eslint --fix src/**",
1780-
"download-api": "dts dev 1.83.0",
1780+
"download-api": "dts dev 1.91.0",
17811781
"postinstall": "npm run download-api"
17821782
},
17831783
"devDependencies": {
@@ -1786,7 +1786,7 @@
17861786
"@types/mocha": "^7.0.2",
17871787
"@types/node": "^14.18.0",
17881788
"@types/semver": "7.5.4",
1789-
"@types/vscode": "1.83.0",
1789+
"@types/vscode": "1.91.0",
17901790
"@types/ws": "8.5.4",
17911791
"@types/xmldom": "^0.1.29",
17921792
"@typescript-eslint/eslint-plugin": "^4.32.0",

src/commands/unitTest.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -891,13 +891,17 @@ async function runHandler(
891891
}
892892
}
893893
// Start the debugging session
894-
startedDebugging = await vscode.debug.startDebugging(undefined, {
895-
type: "objectscript",
896-
request: "attach",
897-
name: "Unit tests",
898-
cspDebugId: queueResp.result.content.debugId,
899-
isUnitTest: true,
900-
});
894+
startedDebugging = await vscode.debug.startDebugging(
895+
undefined,
896+
{
897+
type: "objectscript",
898+
request: "attach",
899+
name: "Unit tests",
900+
cspDebugId: queueResp.result.content.debugId,
901+
isUnitTest: true,
902+
},
903+
{ testRun }
904+
);
901905
}
902906

903907
if (pollResp.retryafter) {

0 commit comments

Comments
 (0)