Skip to content

JUnit_74599

nxi edited this page Apr 9, 2015 · 1 revision
Created by Tony Lam, last modified on Sep 25, 2007

JUnit 4


How to run JUnit 4 as hierarchical suite AutomatedTests.java
@RunWith(Suite.class)
@Suite.SuiteClass({AllTests.class})
pulic class AutomatedTests() {
}
AllTests.java
@RunWith(Suite.class)
@Suite.SuiteClass({CoreTests.class})
pulic class AllTests() {
}
CoreTests.java
pulic class CoreTests() {
  @Test
  public void someTest() {
  }
}
Running AutomatedTests will run AllTests and CoreTests.
Document generated by Confluence on Apr 01, 2015 00:11
Clone this wiki locally