When I specify a test in a nested class in Kotlin as follows ...
import org.junit.jupiter.api.*
class ParentTest
{
@Nested
class NestedTest
{
@Test
fun NotFoundTest() {}
}
@Test
fun FoundTest() {}
}
... it is not recognized by JUnit when running tests using gradle. Only FoundTest
is found and ran.
I am using JUnit 5.1 and Kotlin 1.2.30 and Gradle 4.6.