Skip to content

Unable to run pytest in rewrite, fails with wrong testID #21397

Closed

Description

Trying to use pytest in the test explorer with the following folder: dummy.zip

On the stable release of the extension, tests are not discovered at all. On the rewrite (which can be opted into by the setting "python.experiments.optInto": ["pythonTestAdapter"],) the tests are discovered correctly but running the tests does not work.

image

Error on run is: (no name '/Users/eleanorboyd/Downloads/dummy 2/tests/test_dummy.py::test_dummy_sum' in any of [<Module tests/test_dummy.py>])

Therefore the test ids are somehow being confused.

From the integrated terminal, the following work successfully:
pytest "/Users/eleanorboyd/Downloads/dummy 2/tests/test_dummy.py::test_dummy_sum" and pytest tests/test_dummy.py::test_dummy_sum .

Activity

  1. changed the title [-]Unable to run pytest in rewrite, wrong testID[/-] [+]Unable to run pytest in rewrite, fails with wrong testID[/+] on Jun 9, 2023
  2. locked as resolved and limited conversation to collaborators on Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-testingbugIssue identified by VS Code Team member as probable bugpartner asktriage-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