【发布时间】:2014-11-11 15:21:39
【问题描述】:
我有以下测试类:
TestClass1 (10 tests)
TestClass2 (20 tests)
TestClass3 (15 tests)
TestClass4 (25 tests)
我想创建一个名为
的测试类 SmallTestClass
从 TestClass1 执行 2 个测试,从 TestClass2 执行 3 个测试,从 TestClass3 执行 5 个测试,从 TestClass4 执行 4 个测试
如何做到这一点?我使用spring框架和junit 4
【问题讨论】:
-
你为什么要这样做?
-
我想创建一个运行我所有测试类的一小部分的健全性测试。这种健全性测试是通用且快速的。如果我运行所有的课程,我将不得不等待 5 个小时才能完成测试。