List of usage examples for junit.framework TestResult runCount
public synchronized int runCount()
From source file:Main.java
public static void main(String[] a) { // add the test's in the suite TestSuite suite = new TestSuite(TestJunit1.class, TestJunit2.class, TestJunit3.class); TestResult result = new TestResult(); suite.run(result);/*from ww w . j a v a 2 s .co m*/ System.out.println("Number of test cases = " + result.runCount()); }