Skip to content

Commit 275fbb6

Browse files
committed
updates
1 parent bd2aadb commit 275fbb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/client/testing/testController/common/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ export function populateTestTree(
267267
testItemMappings.runIdToVSid.set(child.runID, vsId);
268268
testItemMappings.vsIdToRunId.set(vsId, child.runID);
269269
} else {
270-
let node = testController.items.get(child.path);
270+
// Use project-scoped ID for non-test nodes and look up within the current root
271+
const nodeId = projectId ? `${projectId}${PROJECT_ID_SEPARATOR}${child.id_}` : child.id_;
272+
let node = testRoot!.children.get(nodeId);
271273

272274
if (!node) {
273-
// Create project-scoped ID for non-test nodes
274-
const nodeId = projectId ? `${projectId}${PROJECT_ID_SEPARATOR}${child.id_}` : child.id_;
275275
node = testController.createTestItem(nodeId, child.name, Uri.file(child.path));
276276

277277
node.canResolveChildren = true;

src/client/testing/testController/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ export class PythonTestController implements ITestController, IExtensionSingleAc
562562
await Promise.all(projects.map((project) => this.discoverTestsForProject(project, projectsCompleted)));
563563

564564
traceInfo(
565-
`[test-by-project] Discovery complete: ${projectsCompleted.size}/${projects.length} projects succeeded`,
565+
`[test-by-project] Discovery complete: ${projectsCompleted.size}/${projects.length} projects completed`,
566566
);
567567
} catch (error) {
568568
traceError(`[test-by-project] Discovery failed for workspace ${workspaceUri.fsPath}:`, error);

0 commit comments

Comments
 (0)