Class SystemTest
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.creekservice.api.system.test.gradle.plugin.test.SystemTest
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@CacheableTask
public abstract class SystemTest
extends org.gradle.api.DefaultTask
Task for running Creek system tests.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path with in the container where a directory containing the AttachMe agent will be mountedFields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Integer>The port on which the attachMe plugin is listening on.abstract org.gradle.api.provider.Property<Integer>The base debug port.abstract org.gradle.api.provider.SetProperty<String>The set of service instances to be debugged.abstract org.gradle.api.provider.SetProperty<String>The set of services to be debugged.protected abstract org.gradle.process.ExecOperationsabstract org.gradle.api.provider.ListProperty<String>abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<String>abstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<String>voidrun()Run the task.voidsetDebugServiceInstances(List<String> args) Method to allow setting debug service instance names the command line.voidsetDebugServices(List<String> args) Method to allow setting debug service names the command line.voidMethod to allow setting extra arguments from the command line.Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getLoggingManager, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Field Details
-
CONTAINER_DEBUG_MOUNT
The path with in the container where a directory containing the AttachMe agent will be mounted- See Also:
-
-
Constructor Details
-
SystemTest
public SystemTest()Constructor.
-
-
Method Details
-
getExecOperations
@Inject protected abstract org.gradle.process.ExecOperations getExecOperations()- Returns:
- the exec operations service for running Java processes.
-
getTestDirectory
@SkipWhenEmpty @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getTestDirectory()- Returns:
- the source directory containing test
-
getResultDirectory
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getResultDirectory()- Returns:
- the directory result files will be written to.
-
getSystemTestExecutor
@Internal public abstract org.gradle.api.file.ConfigurableFileCollection getSystemTestExecutor()- Returns:
- dependencies of the system test executor.
-
getSystemTestExtensions
@Internal public abstract org.gradle.api.file.ConfigurableFileCollection getSystemTestExtensions()- Returns:
- dependencies of the system test extensions.
-
getSystemTestComponents
@Internal public abstract org.gradle.api.file.ConfigurableFileCollection getSystemTestComponents()- Returns:
- dependencies of the components being system tested.
-
getVerificationTimeoutSeconds
- Returns:
- verification timeout property.
-
getSuitesPathPattern
- Returns:
- suite path pattern property.
-
getExtraArguments
- Returns:
- additional command line arguments to pass to the executor
-
setExtraArgumentsFromOption
Method to allow setting extra arguments from the command line.- Parameters:
args- the extra arguments.
-
getDebugAttachMePort
The port on which the attachMe plugin is listening on.This is the port the attachMe agent running within the microservice's process will call out on to ask the debugger to attach.
- Returns:
- the port the attachMe plugin is listening on.
-
getDebugBaseServicePort
The base debug port.The port the first service being debugged will listen on for the debugger to attach. Subsequent services being debugged will use sequential port numbers.
- Returns:
- the base port number used for debugging.
-
getDebugServiceNames
The set of services to be debugged.- Returns:
- set of services to debug.
-
setDebugServices
Method to allow setting debug service names the command line.- Parameters:
args- the service names
-
getDebugServiceInstanceNames
The set of service instances to be debugged.An instance name is the name of the service with a dash and the instance number appended, e.g.
my-service-1.- Returns:
- set of service instances to debug.
-
setDebugServiceInstances
Method to allow setting debug service instance names the command line.- Parameters:
args- the instance names
-
run
public void run()Run the task.
-