You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to run pytest in rewrite, fails with wrong testID #21397
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.
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
[-]Unable to run pytest in rewrite, wrong testID[/-][+]Unable to run pytest in rewrite, fails with wrong testID[/+]fix pytest run script to add cwd to path (#21399)