Skip to content

The failed icon of the first fail test doesn't changed to running icon when using unittest framework in "Test" panel #5791

@xiaofeng0123

Description

@xiaofeng0123

Visual Studio Code - Insiders: 1.35.0-insider
python-insider: 2019.5.16887-rc

Repro step:

  1. Input below code:
import unittest
class PassingTests(unittest.TestCase):
    def test_passing(self):
        self.assertEqual(42, 42)
    def test_passing_still(self):
        self.assertEqual("silly walk", "silly walk")
class FailingTests(unittest.TestCase):
    def test_failure(self):
        self.assertEqual(42, -13)
    def test_failure_still(self):
        self.assertEqual("I'm right!", "no, I am!")
    def test_failure_still1(self):
        self.assertEqual("I'm right!", "no, I am!")
  1. Run tests with unittest framework
  2. Select "Test" in "Side" bar
    4.Click "Run All Tests" button
    5.Click "Run Failed Tests" button

Actual Result:
The failed icon of the first fail test doesn't change
unittest_icon

Expect Result:
All icon of failed tests should change

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