Skip to content

The pytest icons keep spinning when run Test Method. #13285

Closed

Description

@linette-zyy

Environment data

  • VS Code version:
    image
  • Extension version (available under the Extensions sidebar):
    image

Steps to reproduce:

  1. Launch VSC and create python file named pytest_test.py
    a. Clear the part of workspace configuration in setting.json
  2. Enter below code
def test_passing():
    	assert 42 == 42
def test_failure():
    	assert 42 == -13
  1. Run command: "Run All Unit Tests", ensure:
    a. triggers the prompt to configure the test runner, select pytest
    pytest gets installed
    b. Tests are discovered (as shown by code lenses on each test)
  2. Click status bar and choose "Run Test Method"
  3. Choose test_failure

Actual behaviour

image

Activity

  1. added
    triage-neededNeeds assignment to the proper sub-team
    bugIssue identified by VS Code Team member as probable bug
    on Aug 5, 2020
  2. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Aug 5, 2020
  3. karrtikr commented on Aug 10, 2020

    @karrtikr

    Thanks for the bug report! We just wanted to quickly acknowledge we can confirm the issue.

  4. removed their assignment
    on Aug 10, 2020
  5. luabud commented on Jul 29, 2021

    @luabud
    Member

    I couldn't reproduce this with #16769. It also removes the actions on the status bar to run all tests (instead that can be done through the command "Tests: Run all tests" or through the test explorer

  6. locked as resolved and limited conversation to collaborators on Sep 15, 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 succeeded

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions