Interface TestCaseSummary
- All Known Implementing Classes:
TestCaseSummaryImpl
public interface TestCaseSummary
A way of caching information about a specific testCase. However don't hold on to this too long, cause it will
change often. It follows the current build results filter (e.g. last 25 builds, last 7 days)
-
Method Summary
Modifier and TypeMethodDescriptionfloat
long
int
@Nullable BuildResultsSummary
@Nullable String
Just returns the key of the failing since build, just in case the buildResult doesn't exist anymore, e.g.@NotNull List<FailurePeriod>
@Nullable BuildResultsSummary
@Nullable TestCaseResult
@Nullable BuildResultsSummary
-
Method Details
-
getLastTestCaseResult
- Returns:
- the last TestCaseResult to occur if stored in the database. Null if last test case run was successful.
-
getFailurePeriods
- Returns:
- a list of all the failure periods that occurred within this filter period
-
getAverageElapsedTime
long getAverageElapsedTime()- Returns:
- the average time (millis) to occur between a test breaking and the test being fixed for failures occuring with in this filter period
-
getAverageElapsedBuilds
float getAverageElapsedBuilds()- Returns:
- the average number of builds to occur between a test breaking and the test being fixed for failures occuring with in this filter period
-
getFailingSinceBuild
- Returns:
- If the test is currently failing, the BuildResultsSummary the test broke in otherwise null. Build returned should have failed.
-
getFailingSinceBuildKey
Just returns the key of the failing since build, just in case the buildResult doesn't exist anymore, e.g. if it was deleted.- Returns:
- String key for the failing since build
-
getCountFailingSince
int getCountFailingSince()- Returns:
- If the test is currently failing, how many builds has it been failing for. otherwise 0;
-
getSucceedingSinceBuild
- Returns:
- if the test is currently passing, which is the build that the test was most recently fixed in . If the test is failing, returns null. Build returned should have been successful.
-
getLastRanBuild
- Returns:
- the buildResultSummary that this test last ran in (if it exists)
-