Skip to content

Cannot launch a single test-case with pytest  #8849

@ankostis

Description

@ankostis

Environment data

  • VS Code version: 1.40.1
  • Extension version: python2019.1.50794
  • OS and version: Linux, Debian
  • Python version: python-3.7 (OS-default)
  • Type of virtual environment used: venv. pytest is installed in the 'selected" venv.
  • Relevant/affected Python packages and their versions: XXX
  • Jedi

Expected behaviour

I'm expecting to launch a single test-case, either from the code-lens on the test-case function, or from the UI panel to the left with the green arrow.

Actual behaviour

  • All test-cases are launched with pytest, as seen in the output panel.
  • The same happens with debugger.

Questions

Very strange nobody have reported this as of today (#2241 is for unittest, not pytest),
so definitely i'm doing something wrong.

Please guide me how can i help you

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions