Skip to content

Add separate python.testing.pytestArgs setting for test discovery and run #21190

Closed as not planned

Description

Each time the test discovery is executed (either via the Refresh Tests button or automatically) the extension runs run_adapter.py discover pytest ... with all the arguments listed in python.testing.pytestArgs passed in. While such behavior (maybe) makes sense, it would be nice to have an option to ignore the arguments or set the ones used for discovery in a separate parameter (like python.testing.pytestDiscoveryArgs).

This change would help to avoid implicit / unwanted actions on a discovery run, e.g. overwriting a coverage report file.

Activity

  1. github-actions commented on May 9, 2023

    @github-actions

    Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

  2. changed the title [-]Add a way to ignore `python.testing.pytestArgs` for test discovery[/-] [+]Add separate `python.testing.pytestArgs` setting for test discovery and run[/+] on May 9, 2023
  3. locked as resolved and limited conversation to collaborators on Jun 16, 2023
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