【发布时间】:2017-08-23 16:47:29
【问题描述】:
我尝试使用 JUnit 5 Vintage 运行 JUnit 4 测试。
我在嵌套的静态类中有很多测试。顶级类中的测试运行良好,但嵌套类中的测试无法运行。
例如:
public class SomeOuterClass {
@Test
public void outerTest() {
// test runs
}
public static class SomeInnerTests {
@Test
public void someTest() {
// test doesn't run
}
}
public static class OtherInnerTests {
@Test
public void otherTest() {
// test doesn't run
}
}
}
我尝试将junitPlatform.filters.includeClassNamePatterns 设置为'^.*Tests?$', '^.*Tests?\$.*$',但没有成功。
【问题讨论】: