Feature Explorer
The Feature Explorer in the Test Maker extension for VS Code enhances your testing workflow by providing a visual representation of the Gherkin structure within your test files. This can be particularly helpful when dealing with longer spec files.
Structure
When you open a spec file (test file) in the Feature Explorer tab, you'll see a structured view of the Gherkin syntax, allowing you to collapse or expand categories for better readability.
- Feature
- Example Feature
- Scenario
- Example Scenario
- Given
- We Visit the Google search page
- When
- We Search For Query
- Then
- We Get Results
- Given
- Example Scenario
- Scenario
- Example Feature
Locate in File
For improved navigation and focus, you can right-click on any Gherkin keyword within the Feature Explorer. This will reveal the "Locate in File" option, which, when selected, swiftly takes you to the corresponding section in the opened test file.
This feature is particularly useful for quickly navigating through longer spec files, allowing you to focus on specific steps or scenarios.
Note: Ensure you have the Test Maker extension for VS Code installed and your test file opened to leverage the full functionality of the Feature Explorer.