Unable to run pytest in rewrite, fails with wrong testID #21397
Labels
area-testing
bug
Issue identified by VS Code Team member as probable bug
partner ask
triage-needed
Needs assignment to the proper sub-team
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"
andpytest tests/test_dummy.py::test_dummy_sum
.The text was updated successfully, but these errors were encountered: