JUnit –スイートテスト、複数のテストケースの実行
JUnitでは、@RunWith
および@Suite
アノテーションを使用して複数のテストケースを実行できます。 次の例を参照してください。
SuiteAbcTest.java
package com.example; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ Exception1Test.class, //test case 1 TimeoutTest.class //test case 2 }) public class SuiteAbcTest { //normally, this is an empty class }
P.S Tested with JUnit 4.12