Class SystemTestExtension

java.lang.Object
org.creekservice.api.system.test.gradle.plugin.SystemTestExtension

public abstract class SystemTestExtension extends Object
Extension for configuring Creek system tests.
  • Constructor Details

    • SystemTestExtension

      @Inject public SystemTestExtension(org.gradle.api.model.ObjectFactory objectFactory)
      Parameters:
      objectFactory - the @{link ObjectFactory} to use.
  • Method Details

    • getTestDirectory

      public abstract org.gradle.api.file.DirectoryProperty getTestDirectory()
      Returns:
      the directory to search for test packages.
    • getResultDirectory

      public abstract org.gradle.api.file.DirectoryProperty getResultDirectory()
      Returns:
      the directory under which test result files will be written.
    • getVerificationTimeoutSeconds

      public abstract org.gradle.api.provider.Property<String> getVerificationTimeoutSeconds()
      Returns:
      how long to wait for expectations to be met
    • verificationTimeout

      public void verificationTimeout(Duration timeout)
      Set the verification timeout.

      The verification timeout is that amount of time to wait for all expectations to be met.

      Parameters:
      timeout - the timeout.
    • getSuitePathPattern

      public abstract org.gradle.api.provider.Property<String> getSuitePathPattern()
      Returns:
      Optional pattern used to limit which test suites to run. A suite's relative path must match the supplied regular expression.
    • getExtraArguments

      public abstract org.gradle.api.provider.ListProperty<String> getExtraArguments()
      Returns:
      list of additional arguments to pass to the test executor

      See Executor docs for more info.

    • extraArguments

      public void extraArguments(String... args)
      Set additional args to pass to the test executor.

      See Executor docs for more info.

      Parameters:
      args - the extra args to use when running system tests.
    • getDebugging

      public DebugExtension getDebugging()
      Returns:
      the debugging extension *
    • debugging

      public void debugging(org.gradle.api.Action<DebugExtension> action)
      Configure debugging extension
      Parameters:
      action - the action to perform on the debugging ext.
    • finalize

      protected final void finalize()
      Overrides:
      finalize in class Object