【发布时间】:2018-04-30 20:14:47
【问题描述】:
鉴于我有测试大小:small、medium 和 large,如 https://testing.googleblog.com/2010/12/test-sizes.html 中所述。
如何根据测试大小对所有测试进行分类?
【问题讨论】:
标签: java testing junit junit4 junit5
鉴于我有测试大小:small、medium 和 large,如 https://testing.googleblog.com/2010/12/test-sizes.html 中所述。
如何根据测试大小对所有测试进行分类?
【问题讨论】:
标签: java testing junit junit4 junit5
您可以将 @org.junit.experimental.categories.Category 与 JUnit 4 或 @org.junit.jupiter.api.Tag 与 JUnit Jupiter(也称为 JUnit 5 的编程模型)一起使用。
【讨论】: