Skip to content

Debugger doesn't stop at breakpoints with pytest if pytest-cov is used #693

Closed as not planned
@lmazuel

Description

@lmazuel

Environment data

VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: 3.6.2
OS and version: Windows 10 latest update

Actual behavior

My initial setup has this setup.cfg file:

[tool:pytest]
addopts = --cov=mymodulename

This adds automatically a "--cov" to every "pytest" call, but prevents VSCode to stop at breakpoints. If I remove the file (or at least the --cov), I get back my breakpoints stop.
I changed my setup to put that in my Travis file instead, but I feel like this should work :/

Expected behavior

I should be able to have this file (and coverage) and debug at the same time.

Steps to reproduce:

  • Install pytest and pytest-cov
  • Create a setup.cfg as describe before
  • Create even a simple test with a breakpoint inside

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions