matthiasblaesing commented on issue #3975:
URL: https://github.com/apache/netbeans/issues/3975#issuecomment-3161329433

   > > Are we absolutely sure? CTRL+F6 was working without issues in my PR 
branch with that version.
   > 
   > You are correct. Tested again with your branch and that worked. It works 
because you are explicitly enumerating all nested classes. I'll have another 
look.
   
   So I had another look and retestet. With old surefire plugin and a build 
from PR #3995 I get:
   
   ```
   cd /home/matthias/tmp/nested-test; 
JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 
/home/matthias/src/netbeans/nbbuild/netbeans/java/maven/bin/mvn 
-Dtest=test.SampleTest,test.SampleTest$* --no-transfer-progress 
process-test-classes surefire:test
   Scanning for projects...
   
   --------------------------< test:TestNested >---------------------------
   Building TestNested 1.0-SNAPSHOT
     from pom.xml
   --------------------------------[ jar ]---------------------------------
   
   --- resources:3.3.1:resources (default-resources) @ TestNested ---
   skip non existing resourceDirectory 
/home/matthias/tmp/nested-test/src/main/resources
   
   --- compiler:3.13.0:compile (default-compile) @ TestNested ---
   Nothing to compile - all classes are up to date.
   
   --- resources:3.3.1:testResources (default-testResources) @ TestNested ---
   skip non existing resourceDirectory 
/home/matthias/tmp/nested-test/src/test/resources
   
   --- compiler:3.13.0:testCompile (default-testCompile) @ TestNested ---
   Recompiling the module because of changed source code.
   Compiling 3 source files with javac [debug release 17] to target/test-classes
   
   --- surefire:2.22.2:test (default-cli) @ TestNested ---
   
   -------------------------------------------------------
    T E S T S
   -------------------------------------------------------
   Running test.SampleTest
   write this
   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s - in 
test.SampleTest
   
   Results:
   
   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
   
   ------------------------------------------------------------------------
   BUILD SUCCESS
   ------------------------------------------------------------------------
   Total time:  2.306 s
   Finished at: 2025-08-06T21:01:32+02:00
   ------------------------------------------------------------------------
   ```
   
   <img width="555" height="379" alt="Image" 
src="https://github.com/user-attachments/assets/7de80fc7-b2d4-45e9-87af-1e6267de5cd3";
 />
   
   The maven output already shows only one test ran. The log also shows that 
the branch was active, as else the test selection would not have been 
`test.SampleTest,test.SampleTest$*`.
   
   
   I also updated the PR with a fix for the problem running 
`test.SampleTest$NestedClass#testMyMethod2`. Updated test build is available 
from [checks page](https://github.com/apache/netbeans/pull/8664/checks) / 
[directly](https://github.com/apache/netbeans/suites/42959762337/artifacts/3704016044).
   
   @ratcashdev would you please retest?
   


-- 
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

Reply via email to