Package jetbrains.buildServer.serverSide
Interface ShortStatistics
-
- All Known Subinterfaces:
BuildStatistics
,ShortStatisticsEx
- All Known Implementing Classes:
BuildStatisticsImpl
,MockBuildStatistics
public interface ShortStatistics
- Author:
- Kir This class holds some information about some metrics of the build and its status, including test counts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int
getAllTestCount()
Status
getBuildStatus()
int
getCompilationErrorsCount()
String
getCurrentStage()
int
getFailedTestCount()
List<STestRun>
getFailedTests()
List<STestRun>
getFailedTestsIncludingMuted()
int
getIgnoredTestCount()
List<STestRun>
getMutedTests()
int
getMutedTestsCount()
int
getNewFailedCount()
int
getPassedTestCount()
int
getSignature()
Deprecated.always returns 0 since 2017.1long
getTotalDuration()
boolean
isEmpty1()
This method has so strange name because "empty" is predefined keyword in JSP EL.
-
-
-
Method Detail
-
isEmpty1
boolean isEmpty1()
This method has so strange name because "empty" is predefined keyword in JSP EL.- Returns:
- true if build doesn't have any tests and has no compilation errors
-
getBuildStatus
Status getBuildStatus()
- Returns:
- build status
-
getCurrentStage
String getCurrentStage()
- Returns:
- current progress text of the build. Progress text can be set either via specific syntax of the echo task
or using specific message from build runner with block type
DefaultMessagesInfo.BLOCK_TYPE_PROGRESS
. Progress blocks can be nested.
-
getCompilationErrorsCount
int getCompilationErrorsCount()
- Returns:
- number of detected compilation errors within compilation blocks.
-
getPassedTestCount
int getPassedTestCount()
- Returns:
- number of passed(successful) tests in the build.
-
getNewFailedCount
int getNewFailedCount()
- Returns:
- number of newly failed tests in the build, i.e. number of tests which fail in this build the first time comparing with recent builds.
-
getIgnoredTestCount
int getIgnoredTestCount()
- Returns:
- number of ignored tests in the build.
-
getFailedTestCount
int getFailedTestCount()
- Returns:
- number of failed or error tests in the build
-
getAllTestCount
int getAllTestCount()
- Returns:
- total number of tests, including ignored, passed, and failed
-
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
- Since:
- 2021.1
-
getFailedTests
List<STestRun> getFailedTests()
- Returns:
- Collection of failed tests in the build, ordered by isNew, orderNumber (excluding muted runs)
-
getMutedTests
@NotNull List<STestRun> getMutedTests()
- Returns:
- collection of muted tests in the build
-
getMutedTestsCount
int getMutedTestsCount()
- Returns:
- number of muted tests
-
getFailedTestsIncludingMuted
@NotNull List<STestRun> getFailedTestsIncludingMuted()
- Returns:
- Collection of failed tests in the build, ordered by isNew, orderNumber (including muted runs)
- Since:
- 7.0
-
getSignature
int getSignature()
Deprecated.always returns 0 since 2017.1- Returns:
- a signature of the build. We consider two builds fail the same way if they have the same signature.
-
-