Skip to content

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

Closed

Description

@luabud

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

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    triage-neededNeeds assignment to the proper sub-team
    on Aug 29, 2019
  2. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Sep 3, 2019
  3. ericsnowcurrently commented on Sep 4, 2019

    @ericsnowcurrently

    Luciana Abud (@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 ===========================
    
  4. luabud commented on Sep 4, 2019

    @luabud
    MemberAuthor

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

  5. luabud commented on Sep 4, 2019

    @luabud
    MemberAuthor

    I was able to this in another computer:

    image

  6. tbrodbeck commented on Nov 21, 2019

    @tbrodbeck

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

    For reference: I use macOS

  7. ericsnowcurrently commented on Nov 25, 2019

    @ericsnowcurrently

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

  8. ericsnowcurrently commented on Nov 25, 2019

    @ericsnowcurrently

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

  9. dpalharini commented on Apr 7, 2021

    @dpalharini

    +1

  10. brettcannon commented on Jul 29, 2021

    @brettcannon
    Member

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

    Animation

  11. locked as resolved and limited conversation to collaborators on Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeededwindows

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions