Package 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
Nested Classes Modifier and Type Interface Description static class
BuildStatistics.Order
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description STestRun
findTestByTestNameId(long testNameId)
STestRun
findTestByTestRunId(long testRunId)
Allows to find a specific STestRun by given testRunId.java.util.List<STestRun>
findTestsBy(TestName testName)
Deprecated.since 9.0, returns a collection of one composite test run elementint
getAllTestRunCount()
java.util.List<STestRun>
getAllTests()
java.util.List<CompilationBlockBean>
getCompilationErrorBlocks()
java.util.List<STestRun>
getIgnoredTests()
java.util.List<STestRun>
getPassedTests()
int
getPreviousFailedTestsCount()
Deprecated.since 2019.2java.util.List<STestRun>
getTests(Status status, BuildStatistics.Order order)
-
Methods inherited from interface jetbrains.buildServer.serverSide.ShortStatistics
getAllTestCount, getBuildStatus, getCompilationErrorsCount, getCurrentStage, getFailedTestCount, getFailedTests, getFailedTestsIncludingMuted, getIgnoredTestCount, getMutedTests, getMutedTestsCount, getNewFailedCount, getPassedTestCount, getSignature, getTotalDuration, 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
@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 areNORMAL
,FAILURE
,UNKNOWN
.- Passing
Status.UNKNOWN
yields a list of ignored tests. - Passing
Status.NORMAL
yields a list of passed tests. - Passing
Status.WARNING
yields an empty list - Passing
Status.FAILURE
orStatus.ERROR
yields a list of failed tests (excl. muted ones). - Passing
null
yields all tests.
- Passing
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.
-
-