public final class SysGlobals extends Object
JUnit4
ANT task
and RandomizedRunner
.Modifier and Type | Field and Description |
---|---|
static String |
CHILDVM_SYSPROP_JVM_COUNT
System property passed to forked VMs: the number of concurrent JVMs.
|
static String |
CHILDVM_SYSPROP_JVM_ID
System property passed to forked VMs: VM ID (sequential integer between 0 and the (number of concurrent jvms - 1)).
|
Modifier and Type | Method and Description |
---|---|
static String |
CURRENT_PREFIX()
Static singleton's property prefix.
|
static SysGlobals |
initializeWith(String prefix) |
static String |
prefixProperty(String propertyName)
Prefix a given property name with a common prefix.
|
static String |
SYSPROP_APPEND_SEED()
If
true , append seed parameter to all methods. |
static String |
SYSPROP_ITERATIONS()
The global override for the number of each test's repetitions.
|
static String |
SYSPROP_KILLATTEMPTS()
If there's a runaway thread, how many times do we try to interrupt and
then kill it before we give up? Runaway threads may affect other tests (bad idea).
|
static String |
SYSPROP_KILLWAIT()
If there's a runaway thread, how long should we wait between iterations of
putting a silver bullet through its heart?
|
static String |
SYSPROP_PREFIX()
Global system property that holds the prefix used by other properties.
|
static String |
SYSPROP_RANDOM_SEED()
System property with an integer defining global initialization seeds for all
random generators.
|
static String |
SYSPROP_STACKFILTERING()
Enable or disable stack filtering.
|
static String |
SYSPROP_TESTCLASS()
Global override for picking out a single test class to execute.
|
static String |
SYSPROP_TESTFILTER()
Global test filter.
|
static String |
SYSPROP_TESTMETHOD()
Global override for picking out a single test method to execute.
|
static String |
SYSPROP_TIMEOUT_SUITE()
Global override for entire suite's maximum execution time after which
it is considered out of control.
|
static String |
SYSPROP_TIMEOUT()
Global override for a single test case's maximum execution time after which
it is considered out of control and an attempt to interrupt it is executed.
|
public static final String CHILDVM_SYSPROP_JVM_ID
public static final String CHILDVM_SYSPROP_JVM_COUNT
public static SysGlobals initializeWith(String prefix)
public static String SYSPROP_PREFIX()
public static String CURRENT_PREFIX()
public static String SYSPROP_STACKFILTERING()
public static String SYSPROP_RANDOM_SEED()
public static String SYSPROP_ITERATIONS()
public static String SYSPROP_TESTCLASS()
*MyTestwill pick all classes ending in MyTest (in any package, including nested static classes if they appear on input).
public static String SYSPROP_TESTMETHOD()
public static String SYSPROP_TESTFILTER()
public static String SYSPROP_KILLATTEMPTS()
SYSPROP_KILLWAIT
public static String SYSPROP_KILLWAIT()
SYSPROP_KILLATTEMPTS
public static String SYSPROP_TIMEOUT()
The timeout value should be in milliseconds. If the value is trailed by a "!" then the timeout value takes precedence over annotations, otherwise annotations take precedence over the default timeout. This is useful for running debugging sessions, for example, when default timeouts may be too short.
RandomizedRunner.DEFAULT_TIMEOUT
public static String SYSPROP_TIMEOUT_SUITE()
The timeout value should be in milliseconds. If the value is trailed by a "!" then the timeout value takes precedence over annotations, otherwise annotations take precedence over the default timeout. This is useful for running debugging sessions, for example, when default timeouts may be too short.
RandomizedRunner.DEFAULT_TIMEOUT_SUITE
public static String SYSPROP_APPEND_SEED()
true
, append seed parameter to all methods. Methods that are for some
reason repeated (due to Repeat
annotation or multiple Seeds
, for example)
are always postfixed with the seed to discriminate tests from each other. Otherwise many
GUI clients have a problem in telling which test result was which.public static String prefixProperty(String propertyName)
SYSPROP_PREFIX
. This method initializes static singleton property
names so it shouldn't be called on class initialization anywhere.Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.