Skip to content

Default to --no-cov when debugging pytest #19985

Closed as not planned
Closed as not planned

Description

seems like the default should be --no-cov for running pytest in vscode. Originally mentioned in a comment here: vscode-python/#19322

Activity

  1. DmytroSokhach commented on Nov 22, 2022

    @DmytroSokhach

    Hi, I actually had to set it in launch.json, like described here:
    https://code.visualstudio.com/docs/python/testing#_pytest-configuration-settings
    to make debug stop on breakpoints.

    Also not sure why it is not set by default.

  2. muddi900 commented on Jan 19, 2023

    @muddi900

    --no-cov is not a standard option is pytests, as far as I can tell. Is this based on a plugin?

  3. eleanorjboyd commented on Jan 19, 2023

    @eleanorjboyd
    MemberAuthor

    This is based off the use of the debugger in vscode but is still being considered if the value should be inherently set or not. Since this is up for discussion feel free to add your input and it will be considered when we evaluate this question down the line. Thanks!

  4. eleanorjboyd commented on Jan 25, 2023

    @eleanorjboyd
    MemberAuthor

    --no-cov is referenced in this issue as a fix to the discovery issues. This point should be considered in this issues consideration.

  5. added a commit that references this issue on Apr 19, 2023
    a009edb
  6. added a commit that references this issue on Apr 19, 2023
    867a44e
  7. karthiknadig commented on Apr 29, 2023

    @karthiknadig
    Member

    We need an alternative solution to this, #21146

  8. 1 remaining item

  9. added 4 commits that reference this issue on May 12, 2023
    d7ff7c5
    99fc82f
    c517b84
    7f8bc67
  10. eleanorjboyd commented on Dec 18, 2023

    @eleanorjboyd
    MemberAuthor

    as we are doing more in depth work on args as talked about in this issue #21845 I am closing this one as we are not even sure if we want to be manipulating args like so. Thanks

  11. locked as resolved and limited conversation to collaborators on Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-testingbugIssue 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