TNi*_*nja 5 ant junit ant-junit junit5
如何使用 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)
好心提醒。
| 归档时间: |
|
| 查看次数: |
1821 次 |
| 最近记录: |