Skip to content

runTests can't find tests in a file #25662

@pamelafox

Description

@pamelafox

The runTests tool cannot find any tests in my E2E tests file (e2e.py), even though it does have many tests. It might be because I named it "e2e.py" instead of "e2e_test.py" or "test_e2e.py", the standard pytest test discovery naming. That's intentional, as I always run it separately from the fast pytest tests.

Here's the file:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/tests/e2e.py

GitHub Copilot logs are below.

Version: 1.104.0-insider (Universal)
Commit: e296bdfe0313d571a6f58399b22afd199f6da454
Date: 2025-09-08T05:26:36.685Z
Electron: 37.3.1
ElectronBuildId: 12259562
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Darwin arm64 23.6.0

Steps to Reproduce:

  1. Open https://github.com/Azure-Samples/azure-search-openai-demo/
  2. Use "fixer" mode in GitHub Copilot
  3. Ask it to run the E2E playwright tests

Tool Call - call_IU2uqaWgR9kLS0x409vkP0n3__vscode-1757360813940

Request

id   : call_IU2uqaWgR9kLS0x409vkP0n3__vscode-1757360813940
tool : runTests
args : {
  "files": [
    "/Users/pamelafox/azure-search-openai-demo/tests/e2e.py"
  ]
}

Response

No tests found in the files. Ensure the correct absolute paths are passed to the tool.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugpythonPull requests that update Python codetriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions