/* * Print information of tests to console */ public static void summary() { System.out.println(tests.size() + " tests run"); // all tests run for (LogEntry entry : tests) { System.out.print(entry.getTestName() + ": "); if (entry.getFails() > 0) { // check if test failed System.out.print(" FAILED "); } System.out.println(entry.getSubtask().size() + " run, " + entry.getFails() + " failed."); for (Subtask task : entry.getSubtask()) { // show methods called by System.out.println(" -" + task.toString()); // that particular test } } }