Skip to content

Navigation from Test Explorer to code #4278

Closed

Description

@d3r3kk

Double-clicking an element in the Test Explorer view will navigate the user to the file/line number in the editor that holds the definition of that Test Explorer element.

  • File - open the file, place the cursor at the top.
  • Suite - open the file containing the suite, place the cursor at the beginning of the line where the class (suite) is declared.
  • Function - open the file containing the function, place the cursor at the beginning of the line where the function is declared.

This may require extending the model we use for our tests a bit, or extending the API we make available to the TreeViewHandler. Today, we can run a specific test can we navigate to it from anyplace? If there is a trivial or well known call that can do this today, it may lower this task's complexity a bit!

Test for completion:

  • Double-clicking on a file in the test explorer view puts my cursor at line 1, col 1 of that file.
  • Double-clicking on a suite in the test explorer view puts my cursor at the line the suite/class is declared, col 1.
  • Double-clicking on a function in the test explorer view puts my cursor at the line the function is declared, col 1.

Activity

  1. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Feb 5, 2019
  2. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Feb 5, 2019
  3. d3r3kk commented on Feb 5, 2019

    @d3r3kk
    Author

    Code Lense provider has this today, we will need to make use of it in a new API that we will share with the Test Explorer.

  4. karrtikr commented on Feb 9, 2019

    @karrtikr

    This is no longer done by Double clicking , but by clicking Open icon. Also the cursor does not move, but the focus is changed to the correct place. If this is the expected behavior Don Jayamanne (@DonJayamanne) , go ahead and close it.

  5. ghost removed on Feb 9, 2019
  6. DonJayamanne commented on Feb 10, 2019

    @DonJayamanne

    Let's get clarification from PMs

  7. locked as resolved and limited conversation to collaborators on Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions