[
https://issues.apache.org/jira/browse/NETBEANS-1744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457137#comment-17457137
]
Vedran commented on NETBEANS-1744:
----------------------------------
Hi, i am using NB 12.6 and it looks like this is still not possible.
> Support Run/Debug Focused Test Method for @Nested JUnit 5 test classes in
> Maven projects
> ----------------------------------------------------------------------------------------
>
> Key: NETBEANS-1744
> URL: https://issues.apache.org/jira/browse/NETBEANS-1744
> Project: NetBeans
> Issue Type: Sub-task
> Affects Versions: 10.0
> Reporter: Stig Rohde Døssing
> Assignee: Stig Rohde Døssing
> Priority: Trivial
> Labels: pull-request-available
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> Example
> {code}
> 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");
> }
> }
> }
> {code}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
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