如何使用 Ant 运行带有注释的 JUnit 5 测试@Tag
?
例如:
class Tax {
@Test
@Tag("taxes")
void testingTax() {
}
}
在 Maven 中,我可以执行以下操作来包含或排除。但是我不知道如何让它在 Ant 中工作。
<properties>
<includeTags>taxes</includeTags>
<excludeTags>Promo</excludeTags>
</properties>
好心提醒。