private Integer getEstimatedTotalStepCount() { int estimatedTotalSteps = (getStepCount() + estimatedUnimplementedStepCount()); return (estimatedTotalSteps == 0) ? DEFAULT_ESTIMATED_TOTAL_STEPS : estimatedTotalSteps; }
private Integer getEstimatedTotalStepCount() { int estimatedTotalSteps = (getStepCount() + estimatedUnimplementedStepCount()); return (estimatedTotalSteps == 0) ? DEFAULT_ESTIMATED_TOTAL_STEPS : estimatedTotalSteps; }
private Integer getEstimatedTotalStepCount() { int estimatedTotalSteps = (getStepCount() + estimatedUnimplementedStepCount()); return (estimatedTotalSteps == 0) ? DEFAULT_ESTIMATED_TOTAL_STEPS : estimatedTotalSteps; }
public double getAverageTestSize() { if (totalImplementedTests() > 0) { return ((double) getStepCount()) / totalImplementedTests(); } else { return estimatedAverageStepCount; } }
public double getAverageTestSize() { if (totalImplementedTests() > 0) { return ((double) getStepCount()) / totalImplementedTests(); } else { return estimatedAverageStepCount; } }
public double getAverageTestSize() { if (totalImplementedTests() > 0) { return ((double) getStepCount()) / totalImplementedTests(); } else { return estimatedAverageStepCount; } }
public void updateData(TestOutcomes testOutcomes) { int totalStepCount = testOutcomes.getStepCount(); int passingSteps = testOutcomes.getPassingTests().getStepCount(); int failingSteps = testOutcomes.getFailingTests().getStepCount(); int skippedSteps = totalStepCount - passingSteps - failingSteps; String buildId = getEnvironmentVariables().getValue(BUILD_ID, "MANUAL"); TestResultSnapshot newSnapshot = new TestResultSnapshot(totalStepCount, passingSteps, failingSteps, skippedSteps, buildId); try { save(newSnapshot); } catch (FileNotFoundException e) { throw new IllegalArgumentException("Unable to store history data", e); } }