Class SkipUtil

  • Direct Known Subclasses:
    SkipJUnit4

    public class SkipUtil
    extends java.lang.Object
    Functionality for skipping tests.
    Author:
    Daniel Sagenschneider
    • Field Detail

      • SKIP_STRESS_SYSTEM_PROPERTY

        public static final java.lang.String SKIP_STRESS_SYSTEM_PROPERTY
        Skip test System 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 available System 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
        GCloud System 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
        AWS System 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
    • Constructor Detail

      • SkipUtil

        protected SkipUtil()
        All access via static methods.
    • 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.