Interface BuildStatistics

  • All Superinterfaces:
    ShortStatistics

    public interface BuildStatistics
    extends ShortStatistics
    Presents information about build result: failed, passed and ignored tests, compilation errors, duration time.
    • Method Detail

      • getIgnoredTests

        java.util.List<STestRun> getIgnoredTests()
        Returns:
        Collection of ignored tests in the build in natural order.
      • getPassedTests

        java.util.List<STestRun> getPassedTests()
        Returns:
        Collection of successful tests in the build in natural order.
      • getCompilationErrorBlocks

        java.util.List<CompilationBlockBean> getCompilationErrorBlocks()
        Returns:
        messages with compilation error text.
      • getPreviousFailedTestsCount

        @Deprecated
        int getPreviousFailedTestsCount()
        Deprecated.
        since 2019.2
        Returns:
        number of tests which fail in this build and in the previous build as well
      • getTests

        java.util.List<STestRun> getTests​(@Nullable
                                          Status status,
                                          @NotNull
                                          BuildStatistics.Order order)
        Parameters:
        status - if specified, this is the status of tests to be returned. Supported values are NORMAL, FAILURE, UNKNOWN.
        order - specifies result order
        Returns:
        Non-modifiable list of tests according to the parameters query (passed and ignored tests are returned only if statistics were created with corresponding BuildStatisticsOptions)
      • getAllTests

        java.util.List<STestRun> getAllTests()
        Returns:
        all build tests in natural order (passed and ignored tests are returned only if statistics were created with corresponding BuildStatisticsOptions)
        Since:
        7.0
      • findTestsBy

        @Deprecated
        java.util.List<STestRun> findTestsBy​(TestName testName)
        Deprecated.
        since 9.0, returns a collection of one composite test run element
        Returns:
        collection of test runs by a testName (test with the same name can run several times in the build)
        Since:
        7.0
      • findTestByTestNameId

        @Nullable
        STestRun findTestByTestNameId​(long testNameId)
        Returns:
        Composite STestRun based on given testNameId
        Since:
        9.0
        See Also:
        STest.getTestNameId()
      • findTestByTestRunId

        @Nullable
        STestRun findTestByTestRunId​(long testRunId)
        Allows to find a specific STestRun by given testRunId.
        Parameters:
        testRunId - test run id
        Returns:
        Test run according to given testRunId
        Since:
        9.0
        See Also:
        STestRun.getTestRunId()
      • getAllTestRunCount

        int getAllTestRunCount()
        Returns:
        Total number of test runs in the build. If a test was run several times withing the build, all its runs will be considered.