Class SkipUtil
- java.lang.Object
-
- net.officefloor.test.SkipUtil
-
- Direct Known Subclasses:
SkipJUnit4
public class SkipUtil extends java.lang.Object
Functionality for skipping tests.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AWS_AVAILABLE_ENVIRONMENT_VARIABLE
AWS environment variable.static java.lang.String
AWS_AVAILABLE_SYSTEM_PROPERTY
AWSSystem
property.static java.lang.String
DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE
Docker available environment variable.static java.lang.String
DOCKER_AVAILABLE_SYSTEM_PROPERTY
Docker availableSystem
property.static java.lang.String
GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE
GCloud environment variable.static java.lang.String
GCLOUD_AVAILABLE_SYSTEM_PROPERTY
GCloudSystem
property.static java.lang.String
SKIP_STRESS_ENVIRONMENT_VARIABLE
Skip test environment variable.static java.lang.String
SKIP_STRESS_SYSTEM_PROPERTY
Skip testSystem
property.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SkipUtil()
All access via static methods.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSkipStressTests()
Indicates if not to run stress tests.static boolean
isSkipTestsUsingAws()
Indicates if not to run tests using AWS and local services like SAM.static boolean
isSkipTestsUsingDocker()
Indicates if not to run tests using docker.static boolean
isSkipTestsUsingGCloud()
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 testSystem
property.- 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 availableSystem
property.- 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
GCloudSystem
property.- 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
-
AWS_AVAILABLE_SYSTEM_PROPERTY
public static final java.lang.String AWS_AVAILABLE_SYSTEM_PROPERTY
AWSSystem
property.- See Also:
- Constant Field Values
-
AWS_AVAILABLE_ENVIRONMENT_VARIABLE
public static final java.lang.String AWS_AVAILABLE_ENVIRONMENT_VARIABLE
AWS 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:
true
to 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:
true
to 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:
true
to 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:
true
to ignore doing a AWS test.
-
-