Package net.masterthought.cucumber
Class Trends
- java.lang.Object
-
- net.masterthought.cucumber.Trends
-
public class Trends extends Object
Contains historical information about all and failed features, scenarios and steps.- Author:
- Damian Szczepanik (damianszczepanik@github)
-
-
Constructor Summary
Constructors Constructor Description Trends()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBuild(String buildNumber, Reportable reportable)Adds build into the trends.String[]getBuildNumbers()long[]getDurations()int[]getFailedFeatures()int[]getFailedScenarios()int[]getFailedSteps()int[]getPassedFeatures()int[]getPassedScenarios()int[]getPassedSteps()int[]getPendingSteps()int[]getSkippedSteps()int[]getTotalFeatures()int[]getTotalScenarios()int[]getTotalSteps()int[]getUndefinedSteps()voidlimitItems(int limit)Removes elements that points to the oldest items.
-
-
-
Method Detail
-
getBuildNumbers
public String[] getBuildNumbers()
-
getFailedFeatures
public int[] getFailedFeatures()
-
getPassedFeatures
public int[] getPassedFeatures()
-
getTotalFeatures
public int[] getTotalFeatures()
-
getPassedScenarios
public int[] getPassedScenarios()
-
getFailedScenarios
public int[] getFailedScenarios()
-
getTotalScenarios
public int[] getTotalScenarios()
-
getPassedSteps
public int[] getPassedSteps()
-
getFailedSteps
public int[] getFailedSteps()
-
getSkippedSteps
public int[] getSkippedSteps()
-
getPendingSteps
public int[] getPendingSteps()
-
getUndefinedSteps
public int[] getUndefinedSteps()
-
getTotalSteps
public int[] getTotalSteps()
-
getDurations
public long[] getDurations()
-
addBuild
public void addBuild(String buildNumber, Reportable reportable)
Adds build into the trends.- Parameters:
buildNumber- number of the buildreportable- stats for the generated report
-
limitItems
public void limitItems(int limit)
Removes elements that points to the oldest items. Leave trends unchanged if the limit is bigger than current trends length.- Parameters:
limit- number of elements that will be leave
-
-