Skip to content

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

@linette-zyy

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

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