jetbrains.buildServer.serverSide
Interface BuildStatistics

All Superinterfaces:
ShortStatistics

public interface BuildStatistics
extends ShortStatistics

Presents information about build result: failed, passed and ignored tests, compilation errors, duration time.


Nested Class Summary
static class BuildStatistics.Order
          Order for getTests(jetbrains.buildServer.messages.Status, jetbrains.buildServer.serverSide.BuildStatistics.Order) call
 
Method Summary
 java.util.List<STestRun> findTestsBy(TestName testName)
           
 java.util.List<STestRun> getAllTests()
           
 java.util.List<CompilationBlockBean> getCompilationErrorBlocks()
           
 java.util.List<STestRun> getIgnoredTests()
           
 java.util.List<STestRun> getPassedTests()
           
 int getPreviousFailedTestsCount()
           
 java.util.List<STestRun> getTests(Status status, BuildStatistics.Order order)
           
 long getTotalDuration()
           
 
Methods inherited from interface jetbrains.buildServer.serverSide.ShortStatistics
getAllTestCount, getBuildStatus, getCompilationErrorsCount, getCurrentStage, getFailedTestCount, getFailedTests, getFailedTestsIncludingMuted, getIgnoredTestCount, getNewFailedCount, getPassedTestCount, getSignature, isEmpty1
 

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

int getPreviousFailedTestsCount()
Returns:
number of tests which fail in this build and in the previous build as well

getTotalDuration

long getTotalDuration()
Returns:
total duration of test execution, i.e. sum of all test durations (msecs). Depending on test runner, may either include or exclude time for test setup/teardown times

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, ERROR, UNKNOWN
order - specifies result order
Returns:
Non-modifyable 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

java.util.List<STestRun> findTestsBy(TestName testName)
Returns:
collection of test runs by a testName (test with the same name can run several times in the build)
Since:
7.0