Skip to content

Add "Copy Test ID" option to gutter icon context menu #25476

Closed

Description

It would be really convenient if the "Copy Test ID" option (added in #25257) were to be also added to the right click context menu for the test buttons in the editor gutter (see red circle):

Image

Activity

  1. connor4312 commented on Sep 16, 2025

    @connor4312
    Member

    The original feature request is asking to

    have it be in the pytest format: path/to/module.py::Class::function

    This isn't something we have on the vscode core side, so I think it would be a Python extension thing for the testing/item/gutter menu.

  2. eleanorjboyd commented on Sep 20, 2025

    @eleanorjboyd
    Member

    this new feature should be available Monday for you to try!

  3. eleanorjboyd commented on Sep 30, 2025

    @eleanorjboyd
    Member

    verification steps:

    • create a file with a python test
    • go to the beaker icon on the side and setup testing for python
    • see the green play button appear after discovery works successfully
    • check for the "copy test id" button and that it looks good when you paste it (should be an ID made of the file and the test)
  4. added
    verifiedVerification succeeded
    and removed
    info-neededIssue requires more information from poster
    triage-neededNeeds assignment to the proper sub-team
    on Sep 30, 2025
  5. dmitrivMS commented on Sep 30, 2025

    @dmitrivMS

    Verified as well:

    Image

    Resulting test ID: c:\temp\test\test_calculator.py::TestAdd::test_add_positive_numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions