Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Run Current Test File" is not running tests, just discovering them #7150

Closed
luabud opened this issue Aug 29, 2019 · 8 comments · Fixed by #16769
Closed

"Run Current Test File" is not running tests, just discovering them #7150

luabud opened this issue Aug 29, 2019 · 8 comments · Fixed by #16769
Labels
area-testing bug Issue identified by VS Code Team member as probable bug verified Verification succeeded windows
Milestone

Comments

@luabud
Copy link
Member

luabud commented Aug 29, 2019

Windows 10, extension version 2019.8.30787
image

If you right click the editor and select "Run Current Test File", we trigger to discover it, but not to run it:
image

@luabud luabud added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Aug 29, 2019
@karrtikr karrtikr added the triage label Sep 3, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Sep 3, 2019
@ericsnowcurrently
Copy link
Member

@luabud, I was not able to duplicate this using the most recent insiders build on linux. (See below.) Where did you see this?

python /home/esnow/.vscode-insiders/extensions/ms-python.python-2019.10.34487-dev/pythonFiles/testing_tools/run_adapter.py discover pytest -- -s --cache-clear .
============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-4.6.2, py-1.8.0, pluggy-0.12.0
rootdir: /home/esnow/projects/work/test_projects/testing
collected 1 item

complex/tests/test_42.py .                                               [100%]

-------------- generated xml file: /tmp/tmp-14431VIbCQnOAE35p.xml --------------
=========================== 1 passed in 0.00 seconds ===========================

@ericsnowcurrently ericsnowcurrently added info-needed Issue requires more information from poster area-testing labels Sep 4, 2019
@luabud
Copy link
Member Author

luabud commented Sep 4, 2019

oops, forgot to mention It's in the Python output channel. It may be a Windows-only issue

@luabud
Copy link
Member Author

luabud commented Sep 4, 2019

I was able to this in another computer:

image

@brettcannon brettcannon removed the info-needed Issue requires more information from poster label Oct 9, 2019
@tbrodbeck
Copy link

tbrodbeck commented Nov 21, 2019

+1
It actually only run the test file, if the test file is in focus.

For reference: I use macOS

@ericsnowcurrently
Copy link
Member

I was able to verify this is a problem on Windows.

@ericsnowcurrently
Copy link
Member

I'm guessing this is a similar issue with case sensitivity as #8627.

@ericsnowcurrently ericsnowcurrently removed their assignment May 11, 2020
@dpalharini
Copy link

+1

@brettcannon
Copy link
Member

This is fixed in the next version of our test explorer.

Animation

@brettcannon brettcannon added the verified Verification succeeded label Jul 29, 2021
@karthiknadig karthiknadig added this to the August 2021 milestone Aug 5, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug verified Verification succeeded windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants