Java Swing GUIをテストするためのいくつかのJUnitテストメソッドを作成しました(FESTを使用)。私のクラスは次の形式です。
public class Tests
{
@BeforeClass
public static void beforeClass() throws Exception { ... }
@Before
public void before() throws Exception { ... }
@After
public void after() throws Exception { ... }
@AfterClass
public static void afterClass() throws Exception { ... }
@Test
public void testA() { ... }
@Test
public void testB() { ... }
@Test
public void testC() { ... }
}
このクラスをEclipseで実行すると、testAテストのみが実行され、testBやtestCは実行されません。testAをコメントアウトすると、testBが実行されるため、毎回最初のテストを実行するように見えます。
EclipseのJUnitは、最初のテストが完了した後、「Runs:2/3」を表示しますが、それ以上進行しないか、エラーを表示します。
私が間違っていることはありますか?JUnit4.8.1とFEST1.2を使用しています。