Package io.jenkins.plugins.junit.storage
Interface TestResultImpl
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface TestResultImpl
Pluggable implementation of
TestResult
.-
Method Summary
Modifier and TypeMethodDescriptionint
getBuild()
int
Determines if there is multiple builds with test resultsint
Run<?,
?> getFailedSinceRun
(CaseResult caseResult) getFailedTestsByPackage
(String packageName) getHistorySummary
(int offset) getPackageResult
(String packageName) int
getPassedTestsByPackage
(String packageName) The test result for the last run that has a test result Null when there's no previous result.getResultByNodes
(List<String> nodeIds) default Run<?,
?> getRun()
int
getSkippedTestsByPackage
(String packageName) default Collection<SuiteResult>
Retrieves duration for history graphint
float
Retrieves results for trend graphs
-
Method Details
-
getFailCount
int getFailCount() -
getSkipCount
int getSkipCount() -
getPassCount
int getPassCount() -
getTotalCount
int getTotalCount() -
getFailedTests
List<CaseResult> getFailedTests() -
getFailedTestsByPackage
-
getSkippedTests
List<CaseResult> getSkippedTests() -
getSkippedTestsByPackage
-
getPassedTests
List<CaseResult> getPassedTests() -
getPassedTestsByPackage
-
getPackageResult
-
getAllPackageResults
List<PackageResult> getAllPackageResults() -
getTrendTestResultSummary
List<TrendTestResultSummary> getTrendTestResultSummary()Retrieves results for trend graphs- Returns:
- test summary for all runs associated to the job
-
getTestDurationResultSummary
List<TestDurationResultSummary> getTestDurationResultSummary()Retrieves duration for history graph- Returns:
- test duration summary for all runs associated to the job TODO Add API that only loads specific test object, will allow smaller scoped history graphs
-
getHistorySummary
-
getCountOfBuildsWithTestResults
int getCountOfBuildsWithTestResults()Determines if there is multiple builds with test results- Returns:
- count of builds with tests results
-
getFailedSinceRun
-
getRun
-
getJobName
-
getBuild
@NonNull int getBuild() -
getResultByNodes
-
getPreviousResult
The test result for the last run that has a test result Null when there's no previous result.- Returns:
- the previous test result or null if there's no previous one.
-
getSuite
-
getSuites
-
getTotalTestDuration
float getTotalTestDuration()
-