Eccenux opened a new issue, #7710:
URL: https://github.com/apache/netbeans/issues/7710

   ### 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:
   
![obraz](https://github.com/user-attachments/assets/004be919-09ff-4553-ad48-1139b7b588ab)
   
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to