Class SkipUtil
- Direct Known Subclasses:
SkipJUnit4
- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAWS environment variable.static final StringAWSSystemproperty.static final StringDocker available environment variable.static final StringDocker availableSystemproperty.static final StringGCloud environment variable.static final StringGCloudSystemproperty.static final StringSkip test environment variable.static final StringSkip testSystemproperty. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIndicates if not to run stress tests.static booleanIndicates if not to run tests using AWS and local services like SAM.static booleanIndicates if not to run tests using docker.static booleanIndicates if not to run tests using GCloud (Google Cloud).
-
Field Details
-
SKIP_STRESS_SYSTEM_PROPERTY
Skip testSystemproperty.- See Also:
-
SKIP_STRESS_ENVIRONMENT_VARIABLE
Skip test environment variable.- See Also:
-
DOCKER_AVAILABLE_SYSTEM_PROPERTY
Docker availableSystemproperty.- See Also:
-
DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE
Docker available environment variable.- See Also:
-
GCLOUD_AVAILABLE_SYSTEM_PROPERTY
GCloudSystemproperty.- See Also:
-
GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE
GCloud environment variable.- See Also:
-
AWS_AVAILABLE_SYSTEM_PROPERTY
AWSSystemproperty.- See Also:
-
AWS_AVAILABLE_ENVIRONMENT_VARIABLE
AWS environment variable.- See Also:
-
-
Constructor Details
-
SkipUtil
protected SkipUtil()All access via static methods.
-
-
Method Details
-
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.
-
isSkipTestsUsingAws
public static boolean isSkipTestsUsingAws()Indicates if not to run tests using AWS and local services like SAM.
Some environments do not have AWS available, so this enables disabling these tests.
- Returns:
trueto ignore doing a AWS test.
-