No test are shown when all tests passed with forked unit tests
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 22
### What happened
I have some unit tests (`org.junit.jupiter.api.Test`). I execute tests, but when they are all OK (all passed) the I see status which indicates no testes where execute at all:

Only when I go to _Output_ tab I can see:
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
### Language / Project Type / NetBeans Component
Java Maven Spring application
### How to reproduce
1. Create jupiter unit test file.
2. Add testFail.
3. Execute file: CTRL+F6.
4. -> "4 tests passed, 1 test failed" (OK)
2. Fix (uncomment fix).
3. Execute file: CTRL+F6.
3. -> "No tests executed" (**bug**)
Example test failing.
```
@Test
void testFail() {
String input = "abc";
String expected = "123";
// // fix
// input = expected;
assertEquals(expected, input);
}
```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
17
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the issue in the described Java Maven Spring application on Windows with CTRL+F6, first with a failing test and then after fixing it. Compare the test status shown by NetBeans with the Output tab's "Tests run: 4, Failures: 0, Errors: 0, Skipped: 0" result. Done means all-passing tests are reported as executed rather than "No tests executed."
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100