Skip to content

Visual Studio Code doesn't support attribute @expectedFailure (python unittest)  #8427

Closed

Description

Issue Type: Bug

Visual Studio Code doesn't support attribute expectedfailure, which used for python testsing framework unittest

@expectedFailure
def test_expected_error(self):
   ...

VS Code version: Code 1.39.2 (6ab5985, 2019-10-15T15:35:18.241Z)
OS version: Windows_NT x64 6.1.7601
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32

microsoft/vscode#84050 (comment)

Activity

  1. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Nov 7, 2019
  2. karthiknadig commented on Nov 11, 2019

    @karthiknadig
    Member

    Switching this from bug to an enhancement since we have never supported this before.

    We need to handle a separate case that is expect failures. We will probably also need a separate icon for expected failures.
    image

  3. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Jan 11, 2020
  4. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Jan 11, 2020
  5. brettcannon commented on Jul 29, 2021

    @brettcannon
    Member

    In our upcoming test provider, it shows success as a skipped test, but failure appropriately.

    Animation

  6. karthiknadig commented on Aug 3, 2021

    @karthiknadig
    Member

    Looks like this is fixed when running unittest, but not with unittest test running under pytest. They are getting marked as skipped when we parse the Junit result that we get back.

  7. locked as resolved and limited conversation to collaborators on Nov 30, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions