Skip to content

Commit d87fdb9

Browse files
committed
Fix tests
1 parent 325b763 commit d87fdb9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/test/testing/common/debugLauncher.unit.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,14 @@ suite('Unit Tests - Debug Launcher', () => {
207207
expected = getDefaultDebugConfig();
208208
}
209209
expected.rules = [{ path: path.join(EXTENSION_ROOT_DIR, 'pythonFiles'), include: false }];
210-
expected.program = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'pyvsc-run-isolated.py');
211-
expected.args = [testLaunchScript, ...options.args];
210+
if (testProvider === 'unittest') {
211+
expected.program = testLaunchScript;
212+
expected.args = options.args;
213+
} else {
214+
expected.program = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'pyvsc-run-isolated.py');
215+
expected.args = [testLaunchScript, ...options.args];
216+
}
217+
212218
if (!expected.cwd) {
213219
expected.cwd = workspaceFolders[0].uri.fsPath;
214220
}

0 commit comments

Comments
 (0)