Class SkipUtil

java.lang.Object
net.officefloor.test.SkipUtil
Direct Known Subclasses:
SkipJUnit4

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

    • SKIP_STRESS_SYSTEM_PROPERTY

      public static final String SKIP_STRESS_SYSTEM_PROPERTY
      Skip test System property.
      See Also:
    • SKIP_STRESS_ENVIRONMENT_VARIABLE

      public static final String SKIP_STRESS_ENVIRONMENT_VARIABLE
      Skip test environment variable.
      See Also:
    • DOCKER_AVAILABLE_SYSTEM_PROPERTY

      public static final String DOCKER_AVAILABLE_SYSTEM_PROPERTY
      Docker available System property.
      See Also:
    • DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE

      public static final String DOCKER_AVAILABLE_ENVIRONMENT_VARIABLE
      Docker available environment variable.
      See Also:
    • GCLOUD_AVAILABLE_SYSTEM_PROPERTY

      public static final String GCLOUD_AVAILABLE_SYSTEM_PROPERTY
      GCloud System property.
      See Also:
    • GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE

      public static final String GCLOUD_AVAILABLE_ENVIRONMENT_VARIABLE
      GCloud environment variable.
      See Also:
    • AWS_AVAILABLE_SYSTEM_PROPERTY

      public static final String AWS_AVAILABLE_SYSTEM_PROPERTY
      AWS System property.
      See Also:
    • AWS_AVAILABLE_ENVIRONMENT_VARIABLE

      public static final String 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:
      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.