Skip to content

Commit

Permalink
feat: better integrate test run with debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Nov 12, 2024
1 parent 27cbd51 commit 3071304
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,17 @@ export function createTestController(
});

if (debug) {
const debuggingSession = await vscode.debug.startDebugging(undefined, {
name: "Debug Electron",
type: "node",
request: "attach",
port: 9229,
continueOnAttach: true,
});
const debuggingSession = await vscode.debug.startDebugging(
undefined,
{
name: "Debug Electron",
type: "node",
request: "attach",
port: 9229,
continueOnAttach: true,
},
{ testRun: run },
);

if (!debuggingSession) {
testRunError = new vscode.TestMessage(
Expand Down

0 comments on commit 3071304

Please sign in to comment.