Class TestFailureRateCollector

    • Method Detail

      • getFailingTests

        @NotNull
        public List<TestFailureRate> getFailingTests​(@NotNull
                                                     String buildTypeId,
                                                     float failureRate)
        Description copied from interface: TestFailuresStatistics
        Returns list of TestFailureRate objects of most frequently failing tests in the build configuration.
        Specified by:
        getFailingTests in interface TestFailuresStatistics
        Parameters:
        buildTypeId - build configuration id
        failureRate - low threshold of failure rate (should be less than 1.0)
        Returns:
        list of failing tests with their failure rate. List is sorted by failure rate, higher rate corresponds to less index in the list.
      • isFailingTestsAvailable

        public boolean isFailingTestsAvailable​(@NotNull
                                               String buildTypeId)
        Description copied from interface: TestFailuresStatistics
        Returns true if failing tests statistics available for the specified build configuration.
        Specified by:
        isFailingTestsAvailable in interface TestFailuresStatistics
        Parameters:
        buildTypeId - build configuration id
        Returns:
        see above
      • afterCleanup

        public void afterCleanup​(@NotNull
                                 CleanupProcessState cleanupState)
        Description copied from interface: AfterBuildsCleanupExtension
        Invoked upon finishing of the main cleanup process. At this point all data for specific builds is deleted.
        Note: This extension might not be called for every cleanup run as cleanup process can be interrupted earlier. Extension must check cleanup process state and if it is interrupted, complete its operations and return as quick as possible.
        Specified by:
        afterCleanup in interface AfterBuildsCleanupExtension
        Parameters:
        cleanupState - cleanup process state