public class BuildStatisticsOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BuildStatisticsOptions()
Default constructor.
|
BuildStatisticsOptions(int optionsMask,
int maxNumberOfTestsStacktracesToLoad)
This constructor allows to specify exact options to be used
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsOptions(BuildStatisticsOptions otherOptions)
Deprecated.
in 2019.2
|
boolean |
equals(java.lang.Object o) |
int |
getMaxNumberOfCompileErrorsToLoad() |
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 |
setMaxNumberOfCompileErrorsToLoad(int maxNumberOfCompileErrorsToLoad) |
void |
setMaxNumberOfTestsStacktracesToLoad(int maxNumberOfTestsStacktracesToLoad)
Sets maximum number of tests stacktraces to load, set to -1 to load all stacktraces.
|
java.lang.String |
toString() |
public static final int COMPILATION_ERRORS
public static final int FIRST_FAILED_IN_BUILD
public static final int FIXED_IN_BUILD
public static final int PASSED_TESTS
public static final int IGNORED_TESTS
public static final int NO_GROUPING_BY_NAME
public static final BuildStatisticsOptions ALL_TESTS_NO_DETAILS
public BuildStatisticsOptions()
BuildStatisticsOptions(int, int)
public BuildStatisticsOptions(int optionsMask, int maxNumberOfTestsStacktracesToLoad)
optionsMask
- this is a bit-wise mask of options, like COMPILATION_ERRORS | PASSED_TESTSmaxNumberOfTestsStacktracesToLoad
- max number of stacktraces to load, -1 to load allpublic void setMaxNumberOfTestsStacktracesToLoad(int maxNumberOfTestsStacktracesToLoad)
maxNumberOfTestsStacktracesToLoad
- max number of stacktraces to loadpublic void setLoadCompilationErrors(boolean loadCompilationErrors)
loadCompilationErrors
- compilation errors to loadpublic void setMaxNumberOfCompileErrorsToLoad(int maxNumberOfCompileErrorsToLoad)
maxNumberOfCompileErrorsToLoad
- maximum number of compilation errors to load into build statistics, the bigger the number the more memory it can require, -1 disables the limitpublic boolean isLoadCompilationErrors()
public int getMaxNumberOfTestsStacktracesToLoad()
public int getMaxNumberOfCompileErrorsToLoad()
public void setLoadFirstFailedIn(boolean loadFirstFailedIn)
loadFirstFailedIn
- true if "first failed in" data should be preloaded for failed testspublic void setLoadFixedIn(boolean loadFixedIn)
loadFixedIn
- true if "already fixed in" data should be preloaded for failed testspublic boolean isLoadFirstFailedIn()
public boolean isLoadFixedIn()
public boolean isLoadPassedTests()
public boolean isGroupTestsByName()
public boolean isLoadIgnoredTests()
public boolean containsOptions(BuildStatisticsOptions otherOptions)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object