Interface TestResultImpl


@Restricted(org.kohsuke.accmod.restrictions.Beta.class) public interface TestResultImpl
Pluggable implementation of TestResult.
  • Method Details

    • getFailCount

      int getFailCount()
    • getSkipCount

      int getSkipCount()
    • getPassCount

      int getPassCount()
    • getTotalCount

      int getTotalCount()
    • getFailedTests

      List<CaseResult> getFailedTests()
    • getFailedTestsByPackage

      List<CaseResult> getFailedTestsByPackage(String packageName)
    • getSkippedTests

      List<CaseResult> getSkippedTests()
    • getSkippedTestsByPackage

      List<CaseResult> getSkippedTestsByPackage(String packageName)
    • getPassedTests

      List<CaseResult> getPassedTests()
    • getPassedTestsByPackage

      List<CaseResult> getPassedTestsByPackage(String packageName)
    • getPackageResult

      PackageResult getPackageResult(String packageName)
    • 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

      List<HistoryTestResultSummary> getHistorySummary(int offset)
    • getCountOfBuildsWithTestResults

      int getCountOfBuildsWithTestResults()
      Determines if there is multiple builds with test results
      Returns:
      count of builds with tests results
    • getFailedSinceRun

      Run<?,?> getFailedSinceRun(CaseResult caseResult)
    • getRun

      @CheckForNull default Run<?,?> getRun()
    • getJobName

      @NonNull String getJobName()
    • getBuild

      @NonNull int getBuild()
    • getResultByNodes

      @NonNull TestResult getResultByNodes(@NonNull List<String> nodeIds)
    • getPreviousResult

      @CheckForNull TestResult 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

      SuiteResult getSuite(String name)
    • getSuites

      default Collection<SuiteResult> getSuites()
    • getTotalTestDuration

      float getTotalTestDuration()