【问题标题】:How to classify tests according to test sizes in JUnit如何根据 JUnit 中的测试大小对测试进行分类
【发布时间】:2018-04-30 20:14:47
【问题描述】:

鉴于我有测试大小:smallmediumlarge,如 https://testing.googleblog.com/2010/12/test-sizes.html 中所述。

如何根据测试大小对所有测试进行分类?

【问题讨论】:

    标签: java testing junit junit4 junit5


    【解决方案1】:

    您可以将 @org.junit.experimental.categories.Category 与 JUnit 4 或 @org.junit.jupiter.api.Tag 与 JUnit Jupiter(也称为 JUnit 5 的编程模型)一起使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-23
      • 2011-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多