jetbrains.buildServer.serverSide
Class BuildStatisticsOptions

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BuildStatisticsOptions

public class BuildStatisticsOptions
extends java.lang.Object


Field Summary
static BuildStatisticsOptions ALL_TESTS_NO_DETAILS
          Options allow to search for any test in the build without specifying details
static int COMPILATION_ERRORS
           
static int FIRST_FAILED_IN_BUILD
           
static int FIXED_IN_BUILD
           
static int IGNORED_TESTS
           
static int NO_GROUPING_BY_NAME
          If set, returned STestRuns are not united by common name, i.e if there are multiple test runs of the test with the same name, there will be multiple STestRuns in the result, each having getInvocationCount=1
static int PASSED_TESTS
           
 
Constructor Summary
BuildStatisticsOptions()
          Default constructor.
BuildStatisticsOptions(int optionsMask, int maxNumberOfTestsStacktracesToLoad)
          This constructor allows to specify exact options to be used
 
Method Summary
 boolean containsOptions(BuildStatisticsOptions otherOptions)
           
 boolean equals(java.lang.Object o)
           
 int getMaxNumberOfTestsStacktracesToLoad()
          Returns maximum number of tests for which to load stacktraces, if -1 - all stacktraces will be loaded
 int hashCode()
           
 boolean isGroupTestsByName()
           
 boolean isLoadCompilationErrors()
          Whether to load compilation errors
 boolean isLoadFirstFailedIn()
           
 boolean isLoadFixedIn()
           
 boolean isLoadIgnoredTests()
           
 boolean isLoadPassedTests()
           
 void setLoadCompilationErrors(boolean loadCompilationErrors)
          Sets whether to load compilation errors (true by default)
 void setLoadFirstFailedIn(boolean loadFirstFailedIn)
           
 void setLoadFixedIn(boolean loadFixedIn)
           
 void setMaxNumberOfTestsStacktracesToLoad(int maxNumberOfTestsStacktracesToLoad)
          Sets maximum number of tests stacktraces to load, set to -1 to load all stacktraces.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPILATION_ERRORS

public static final int COMPILATION_ERRORS
See Also:
Constant Field Values

FIRST_FAILED_IN_BUILD

public static final int FIRST_FAILED_IN_BUILD
See Also:
Constant Field Values

FIXED_IN_BUILD

public static final int FIXED_IN_BUILD
See Also:
Constant Field Values

PASSED_TESTS

public static final int PASSED_TESTS
See Also:
Constant Field Values

IGNORED_TESTS

public static final int IGNORED_TESTS
See Also:
Constant Field Values

NO_GROUPING_BY_NAME

public static final int NO_GROUPING_BY_NAME
If set, returned STestRuns are not united by common name, i.e if there are multiple test runs of the test with the same name, there will be multiple STestRuns in the result, each having getInvocationCount=1

Since:
9.0
See Also:
Constant Field Values

ALL_TESTS_NO_DETAILS

public static final BuildStatisticsOptions ALL_TESTS_NO_DETAILS
Options allow to search for any test in the build without specifying details

Since:
9.0
Constructor Detail

BuildStatisticsOptions

public BuildStatisticsOptions()
Default constructor. By default all available data is loaded, including all stacktraces for all failed tests. Tests are grouped by common name (for invocationCount support)

See Also:
BuildStatisticsOptions(int, int)

BuildStatisticsOptions

public BuildStatisticsOptions(int optionsMask,
                              int maxNumberOfTestsStacktracesToLoad)
This constructor allows to specify exact options to be used

Parameters:
optionsMask - this is a bit-wise mask of options, like COMPILATION_ERRORS | PASSED_TESTS
maxNumberOfTestsStacktracesToLoad - max number of stacktraces to load, -1 to load all
Since:
6.0
Method Detail

setMaxNumberOfTestsStacktracesToLoad

public void setMaxNumberOfTestsStacktracesToLoad(int maxNumberOfTestsStacktracesToLoad)
Sets maximum number of tests stacktraces to load, set to -1 to load all stacktraces.

Parameters:
maxNumberOfTestsStacktracesToLoad - max number of stacktraces to load

setLoadCompilationErrors

public void setLoadCompilationErrors(boolean loadCompilationErrors)
Sets whether to load compilation errors (true by default)

Parameters:
loadCompilationErrors - compilation errors to load

isLoadCompilationErrors

public boolean isLoadCompilationErrors()
Whether to load compilation errors

Returns:
see above

getMaxNumberOfTestsStacktracesToLoad

public int getMaxNumberOfTestsStacktracesToLoad()
Returns maximum number of tests for which to load stacktraces, if -1 - all stacktraces will be loaded

Returns:
see above

setLoadFirstFailedIn

public void setLoadFirstFailedIn(boolean loadFirstFailedIn)
Parameters:
loadFirstFailedIn - true if "first failed in" data should be preloaded for failed tests
Since:
5.1

setLoadFixedIn

public void setLoadFixedIn(boolean loadFixedIn)
Parameters:
loadFixedIn - true if "already fixed in" data should be preloaded for failed tests
Since:
5.1

isLoadFirstFailedIn

public boolean isLoadFirstFailedIn()
Returns:
true if should load "first failed in" data for failed tests
Since:
5.1

isLoadFixedIn

public boolean isLoadFixedIn()
Returns:
true if should load "already fixed in" data for failed tests
Since:
5.1

isLoadPassedTests

public boolean isLoadPassedTests()
Returns:
true if information about passed tests should be loaded
Since:
6.0

isGroupTestsByName

public boolean isGroupTestsByName()
Returns:
true if tests should be grouped by common name (default, unless NO_GROUPING_BY_NAME is set)
Since:
9.0

isLoadIgnoredTests

public boolean isLoadIgnoredTests()
Returns:
true if ignored tests should be loaded
Since:
6.0

containsOptions

public boolean containsOptions(BuildStatisticsOptions otherOptions)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object