Details
-
Sub-task
-
Status: In Progress
-
Trivial
-
Resolution: Unresolved
-
10.0
-
None
-
None
Description
Example
class TopLevelTest { @Test void topLevelTest() { System.out.println("topLevelTest"); } @Nested class InnerTest { @Test void inner1Test() { System.out.println("Inner 1"); } @Test void inner2Test() { System.out.println("Inner 2"); } } }
When you try to test a single method in Netbeans (Run/Debug Focused Test Method), Netbeans assumes that the method is in the outermost class in the file. So for example, if you try to run inner1Test, Netbeans will do mvn test -Dtest=TopLevelTest#inner1Test, instead of mvn test -Dtest=TopLevelTest$InnerTest#inner1Test.
Attachments
Issue Links
- is blocked by
-
NETBEANS-1663 JUnit 5 run single test does not work for @ParameterizedTest, and go to source from test results doesn't work for these tests
- Closed
- links to