Skip to content

Test discovery doesn't use the selected environment #633

@renan-r-santos

Description

@renan-r-santos

When using the built-in test discovery, I was expecting that it would use the right environment depending on the test folder. Right now it tries to use the system Python installation and fails.

I'm attaching a ZIP file with the same projects I use to reproduce the issue together with a video showing the behavior.
Here are my relevant user settings:

{
  "python-envs.terminal.showActivateButton": true,
  "python-envs.terminal.autoActivationType": "off",
}

uv_projects.zip

testing.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions