mbien commented on PR #4792: URL: https://github.com/apache/netbeans/pull/4792#issuecomment-1287053952
@Richard7111 Tools like Mockito didn't exist when most of NetBeans was written, this lead to custom tooling around tests. For example most tests extend NbTestCase which can do a lot of NB specific things. You could try to ask on the dev mailing list and see if someone has a good idea how to test things like this. However, UI tests have the tendency to break with time (sometimes randomly) and take long setup time to execute. I can't promise that we would add tests like that since we are reaching some limits. Mocking UI code is also not trivial and often not very useful. As you can see on a full test run https://github.com/apache/netbeans/actions/runs/3280529976/usage (scroll down for the total time spent), thats a lot of time spent testing. Btw since we are talking about testing. I think I found a bug, I am not quite sure how to reproduce it reliably. The popup closes sometimes if a list is closed. It often happens if the first list is closed and possibly if the last list has only one item in it - had no time to investigate further. Another thing: I believe it would be better if the popup wouldn't close if a project-name item is clicked without clicking the x just like it was before. There is no action associated with it, so I believe its better if it does nothing on click. But there is no need to hurry to fix this since there is quite some time till the NB17 release. -- 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
