有没有办法在 JUnit 测试套件中放置简单的开始/停止时间?
当我创建一个测试套件类时,它看起来像这样,我可以运行它。但是我怎么能在这里放一个简单的长启动时间变量来显示所有测试需要多长时间才能运行呢?
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;
}
}