标签: ant-junit

如何使用 Ant 执行 JUnit 5 @Tag 测试?

如何使用 Ant 运行带有 注释的 JUnit 5 测试@Tag

例如:

class Tax {
    @Test
    @Tag("taxes")
    void testingTax() {
    }
}
Run Code Online (Sandbox Code Playgroud)

在 Maven 中,我可以执行以下操作来包含或排除。但是我不知道如何让它在 Ant 中工作。

<properties>
    <includeTags>taxes</includeTags>
    <excludeTags>Promo</excludeTags>
</properties>
Run Code Online (Sandbox Code Playgroud)

好心提醒。

ant junit ant-junit junit5

5
推荐指数
1
解决办法
1821
查看次数

标签 统计

ant ×1

ant-junit ×1

junit ×1

junit5 ×1