if(!TimeController.getInstance().hasTimeToExecuteATestCase()) { break;
private static int checkAllTestsIfTime(List<TestCase> testCases, long delta) { if (TimeController.getInstance().hasTimeToExecuteATestCase() && TimeController.getInstance().isThereStillTimeInThisPhase(delta)) { return JUnitAnalyzer.handleTestsThatAreUnstable(testCases); } return 0; }
if(!TimeController.getInstance().hasTimeToExecuteATestCase()) { logger.error("Ran out of time while checking tests"); return numUnstable;
/** * Add assertions to all tests in a test suite * * @param suite */ public void addAssertions(TestSuiteChromosome suite) { setupClassLoader(suite); for(TestChromosome test : suite.getTestChromosomes()) { if(!TimeController.getInstance().hasTimeToExecuteATestCase()) break; addAssertions(test.getTestCase()); } }
TestCase test = testCases.get(i); boolean added = false; if(!TimeController.getInstance().hasTimeToExecuteATestCase()) { logger.info("Using cached result"); for(ExecutionResult result : cachedResults) {
Iterator<TestCase> iter = testCases.iterator(); while (iter.hasNext()) { if (!TimeController.getInstance().hasTimeToExecuteATestCase()) { break;
ClientServices.getInstance().getClientNode().changeState(ClientState.MINIMIZATION); if (!TimeController.getInstance().hasTimeToExecuteATestCase()) { LoggingUtils.getEvoLogger().info("* " + ClientProcess.getPrettyPrintIdentifier() + "Skipping minimization because not enough time is left"); if (!TimeController.getInstance().hasTimeToExecuteATestCase()) { LoggingUtils.getEvoLogger().info("* " + ClientProcess.getPrettyPrintIdentifier() + "Skipping minimization because not enough time is left"); if (!TimeController.getInstance().hasTimeToExecuteATestCase()) { LoggingUtils.getEvoLogger().info("* " + ClientProcess.getPrettyPrintIdentifier() + "Skipping assertion generation because not enough time is left");