Test should be re-discovered after switching environment. #5347
Labels
area-testing
feature-request
Request for new features or functionality
verified
Verification succeeded
Milestone
Environment data
Expected behavior
I have 2.7 and 3.7. If I have
pytests
in only in 3.7. If i was using 3.7 discovered tests then switched environments then the test explorer should be empty. Also there should be some indication of why the test discovery failed. Pytest not installed.In the case of ptvsd, test discovery fails because of a issue in conftest.py (only on 2.7). But this is not clear, because the tests are not re-discovered when switching between 3.7 and 2.7.
Actual behavior
Test explorer retains the discovered test from the previous environment.
Steps to reproduce:
Open ptvsd project with 3.7
Discover tests
Open test explorer
Change python to 2.7
Test should be rediscovered (should be empty for ptvsd due to a issue with detecting tests)
The text was updated successfully, but these errors were encountered: