Skip to content

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

@mpekurin

Description

@mpekurin

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.

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