Skip to content

Add path of function in pytest format to the clipboard from breadcrumb #20047

Closed

Description

  • We currently have Copy Relative Path as a menu option when you right click on a file.
  • And we have breadcrumbs

i would love it if i could copy a function from within the breadcrumb and have it be in the pytest format: path/to/module.py::Class::function

image

It would be a nice, nice-to-have.

Activity

  1. karthiknadig commented on Oct 22, 2022

    @karthiknadig
    Member

    Connor Peet (@connor4312) can we contribute custom context menu commands to test items? programmatically from the controller I only see option to add Run, Debug, and Coverage profiles. I don't see a way to set a custom context menu command for a test item.

  2. connor4312 commented on Oct 22, 2022

    @connor4312
    Member
  3. karthiknadig commented on Oct 24, 2022

    @karthiknadig
    Member

    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.

  4. kingbuzzman commented on Oct 24, 2022

    @kingbuzzman
    Author

    Karthik Nadig (@karthiknadig) What happens if it's already over 7 up votes? Do we need to wait 60 days nonetheless?

  5. brettcannon commented on Oct 24, 2022

    @brettcannon
    Member

    Javier Buzzi (@kingbuzzman) chances are we are not going to start working on this in the next 60 days, so it doesn't make a huge difference. But I can go ahead and mark this as accepted for consideration.

    Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.

    We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most.

  6. MetRonnie commented on Oct 23, 2024

    @MetRonnie

    I think the context menu when right-clicking a test in the context menu or the gutter icon in the test file would be a good place to put this copy button

    Image

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

Metadata

Metadata

Labels

area-testingcommunity askFeature request that the community expressed interest infeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions