apache / apache/netbeans

Allow running tests from Navigator

Open
#8,311 0 comments 0 reactions 0 assignees View on GitHub
Java kind:feature needs:triage tests
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

# Running tests in a big project requires too many clicks in some cases.

Scenario: You have multiple files open, some of which are test classes.
If you want to run a specific test, you often end up in doing the following:

* in the editor tab, search te required file
* in navigator select the required test method
* in left gutter select the green arrow to run or debug the test

even in the case that the editor tab already points at the required test file.

### Use case/motivation

I would like to be able to (re)run a specific inside a test class by clicking on it in the navigator, when that test class has focus.

### Related issues

No.

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by locating Navigator handling for test classes and methods, then trace the existing gutter run/debug action. Done means selecting a specific test method in Navigator while its class has focus can run or debug that test without switching to the editor tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.