使用Java JUnit框架里的@SuiteClasses注解管理测试用例

  1. 云栖社区>
  2. 汪子熙>
  3. 博客>
  4. 正文

使用Java JUnit框架里的@SuiteClasses注解管理测试用例

jerrywangsap 2020-05-07 20:34:12 浏览388
展开阅读全文

Suppose I have four test cases in my project, the total methods to be tested: 7

Based on the blog Run only given sets of your unit test via @Category, it is possible to organize test methods within THE SAME CLASS to different categories via @Category, that is, the granularity to control which test methods should be executed is method level.

There is another annotation @

网友评论

登录后评论
0/500
评论
jerrywangsap
+ 关注
所属团队号: 汪子熙