[
https://issues.apache.org/jira/browse/NETBEANS-1744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated NETBEANS-1744:
-------------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
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