Tomáš Poledný created NETBEANS-1500:
---------------------------------------
Summary: JUnit 5 there is no posibilities how run Nested test class
Key: NETBEANS-1500
URL: https://issues.apache.org/jira/browse/NETBEANS-1500
Project: NetBeans
Issue Type: Improvement
Components: java - JUnit
Affects Versions: 10.0
Reporter: Tomáš Poledný
JUnit 5 has [Nested
test|https://junit.org/junit5/docs/current/user-guide/#writing-tests-nested].
Nested test is inner class with annotation @Nested. There is no posibilities
how run nested test (only one method with Run Focused Test Method). Test
methods from top level class are running after Test File only.
Example:
{code:java}
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}
I am not able to run whole InnerTest class.
--
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