Skip to content

Commit 42cd011

Browse files
committed
address comments
1 parent 7c3c879 commit 42cd011

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import { PytestTestExecutionAdapter } from '../pytest/pytestExecutionAdapter';
1515
/**
1616
* Separator used to scope test IDs to a specific project.
1717
* Format: {projectId}{SEPARATOR}{testPath}
18-
* Example: "file:///workspace/project||test_file.py::test_name"
18+
* Example: "file:///workspace/project@@PROJECT@@test_file.py::test_name"
1919
*/
20-
export const PROJECT_ID_SEPARATOR = '||';
20+
export const PROJECT_ID_SEPARATOR = '@@vsc@@';
2121

2222
/**
2323
* Gets the project ID from a project URI.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class TestProjectRegistry {
173173
* Creates a ProjectAdapter from a PythonProject.
174174
*/
175175
private async createProjectAdapter(pythonProject: PythonProject, workspaceUri: Uri): Promise<ProjectAdapter> {
176-
const projectId = pythonProject.uri.fsPath;
176+
const projectId = getProjectId(pythonProject.uri);
177177
traceInfo(`[test-by-project] Creating adapter for: ${pythonProject.name} at ${projectId}`);
178178

179179
// Resolve Python environment

0 commit comments

Comments
 (0)