matthiasblaesing commented on issue #3975: URL: https://github.com/apache/netbeans/issues/3975#issuecomment-3151623299
Testproject (Maven): [nested-test.zip](https://github.com/user-attachments/files/21582103/nested-test.zip) I reran the build and downloaded the artifact from PR: https://github.com/apache/netbeans/pull/8664/checks / https://github.com/apache/netbeans/suites/42168507738/artifacts/3683192807. Then I did this to run netbeans: ``` matthias@enterprise:~/tmp$ unzip ~/Downloads/dev-build_8664.zip Archive: /home/matthias/Downloads/dev-build_8664.zip extracting: NetBeans-dev-dev-53ea447f90c0a42000362d34d156bb043f47dfd6-full.zip matthias@enterprise:~/tmp$ unzip NetBeans-dev-dev-53ea447f90c0a42000362d34d156bb043f47dfd6-full.zip Archive: NetBeans-dev-dev-53ea447f90c0a42000362d34d156bb043f47dfd6-full.zip creating: netbeans/ creating: netbeans/ide/ creating: netbeans/ide/bin/ creating: netbeans/ide/bin/nativeexecution/ ... CUT ... inflating: netbeans/licenses/WSDL-2004 inflating: netbeans/netbeans.css matthias@enterprise:~/tmp$ netbeans/bin/netbeans --userdir dummy-userdir --cachedir dummy-cachedir ``` Product version is reported as : `Apache NetBeans IDE DEV (Build dev-53ea447f90c0a42000362d34d156bb043f47dfd6)` I decline settings import and I activate the "Java SE" support via Plugin Manager: <img width="926" height="635" alt="Image" src="https://github.com/user-attachments/assets/b23b4813-1774-40d3-8af8-a86acdf060a1" /> I open the test project and open `PackagedTopLevelTest`. I then press "STRG+F6". This results in the maven call: ``` cd /home/matthias/tmp/nested-test; JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 /home/matthias/tmp/netbeans/java/maven/bin/mvn -Dtest=test.PackagedTopLevelTest --no-transfer-progress process-test-classes surefire:test ``` This is correct as the whole file is to be run. With that I get (enlarged the bottom area a bit): <img width="1954" height="1098" alt="Image" src="https://github.com/user-attachments/assets/9e7c195e-b30d-49de-be16-7e24dc25d381" /> The output is correct, the non-nested method `test.PackagedTopLevel#test4` is reported and so is the nested method `test.PackagedTopLevelTest$NestedClass2$DoubleNestedClass3#test9`. Enabling display for succeeding tests I get: <img width="745" height="284" alt="Image" src="https://github.com/user-attachments/assets/fd21af37-068e-4da1-9a26-fe768a337a16" /> Invoking "Run test8 method" (a method in a nested class): <img width="745" height="284" alt="Image" src="https://github.com/user-attachments/assets/f559c65a-a945-4493-b43e-b0e0c2dc906c" /> results in: ``` cd /home/matthias/tmp/nested-test; JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 /home/matthias/tmp/netbeans/java/maven/bin/mvn -Dtest=test.PackagedTopLevelTest$NestedClass2$DoubleNestedClass3#test8 --no-transfer-progress process-test-classes surefire:test ``` <img width="1389" height="291" alt="Image" src="https://github.com/user-attachments/assets/4948059a-cb64-4939-8483-8d48d934363e" /> Still looks sane to me. Same procedure also works fine with gradle test project. -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists