Open
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
- Create jupiter unit test file.
- Add testFail.
- Execute file: CTRL+F6.
- -> "4 tests passed, 1 test failed" (OK)
- Fix (uncomment fix).
- Execute file: CTRL+F6.
- -> "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