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.
| Methods inherited from interface jetbrains.buildServer.serverSide.ShortStatistics |
getAllTestCount, getBuildStatus, getCompilationErrorsCount, getCurrentStage, getFailedTestCount, getFailedTests, getFailedTestsIncludingMuted, getIgnoredTestCount, getNewFailedCount, getPassedTestCount, getSignature, isEmpty1 |
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, UNKNOWNorder - 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