Package net.officefloor.test
Class SkipUtil
- java.lang.Object
-
- net.officefloor.test.SkipUtil
-
- Direct Known Subclasses:
SkipJUnit4
public class SkipUtil extends java.lang.ObjectFunctionality for skipping tests.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOCKER_AVAILABLE_ENVIRONMENT_VARIABLEDocker available environment variable.static java.lang.StringDOCKER_AVAILABLE_SYSTEM_PROPERTYDocker availableSystemproperty.static java.lang.StringGCLOUD_AVAILABLE_ENVIRONMENT_VARIABLEGCloud environment variable.static java.lang.StringGCLOUD_AVAILABLE_SYSTEM_PROPERTYGCloudSystemproperty.static java.lang.StringSKIP_STRESS_ENVIRONMENT_VARIABLESkip test environment variable.static java.lang.StringSKIP_STRESS_SYSTEM_PROPERTYSkip testSystemproperty.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSkipUtil()All access via static methods.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisSkipStressTests()Indicates if not to run stress tests.static booleanisSkipTestsUsingDocker()Indicates if not to run tests using docker.static booleanisSkipTestsUsingGCloud()Indicates if not to run tests using GCloud (Google Cloud).
-
-
-
Field Detail
-
SKIP_STRESS_SYSTEM_PROPERTY
public static final java.lang.String SKIP_STRESS_SYSTEM_PROPERTY
Skip testSystemproperty.- See Also:
- Constant Field Values
-
SKIP_STRESS_ENVIRONMENT_VARIABLE
public static final java.lang.String SKIP_STRESS_ENVIRONMENT_VARIABLE
Skip test environment variable.- See Also:
- Constant Field Values
-
DOCKER_AVAILABLE_SYSTEM_PROPERTY
public static final java.lang.String DOCKER_AVAILABLE_SYSTEM_PROPERTY
Docker availableSystemproperty.- See Also:
- Constant Field Values
-
DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE
public static final java.lang.String DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE
Docker available environment variable.- See Also:
- Constant Field Values
-
GCLOUD_AVAILABLE_SYSTEM_PROPERTY
public static final java.lang.String GCLOUD_AVAILABLE_SYSTEM_PROPERTY
GCloudSystemproperty.- See Also:
- Constant Field Values
-
GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE
public static final java.lang.String GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE
GCloud environment variable.- See Also:
- Constant Field Values
-
-
Method Detail
-
isSkipStressTests
public static boolean isSkipStressTests()
Indicates if not to run stress tests.
Stress tests should normally be run, but in cases of quick unit testing running for functionality the stress tests can reduce turn around time and subsequently the effectiveness of the tests. This is therefore provided to maintain effectiveness of unit tests.
Furthermore, builds time out on Travis so avoid running.
- Returns:
trueto ignore doing a stress test.
-
isSkipTestsUsingDocker
public static boolean isSkipTestsUsingDocker()
Indicates if not to run tests using docker.
Some environments do not support docker, so this enables disabling these tests.
- Returns:
trueto ignore doing a docker test.
-
isSkipTestsUsingGCloud
public static boolean isSkipTestsUsingGCloud()
Indicates if not to run tests using GCloud (Google Cloud).
Some environments do not have GCloud available, so this enables disabling these tests.
- Returns:
trueto ignore doing a GCloud test.
-
-