Is there a way to place simple start/stop timing in a JUnit test suite?
When I create a test suite class, it looks like this and I can run it. But how could I put a simple long start time variable in here to show how long all the tests took to run?
public class AllTests {
public static Test suite() throws Exception {
TestSuite theTestSuite = new TestSuite();
theTestSuite.addTest(com.company.AllBlahTests.suite());
theTestSuite.addTest(com.company.AllOtherTests.suite());
return theTestSuite;
}
}