Skip to content

Navigation from Test Explorer to code #4278

Closed
@d3r3kk

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions