Package de.smartsquare.squit.task
Class SquitTestTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@CacheableTask() public abstract class SquitTestTask extends DefaultTask
Task for comparing the actual responses to the expected responses and generating a report.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SquitTestTask()
-
Method Summary
Modifier and Type Method Description abstract DirectoryPropertygetReportDir()The path to save reports and possible failures in. abstract Property<Boolean>getSilent()If squit should avoid printing anything if all tests pass. abstract Property<Boolean>getIgnoreFailures()If failures should be ignored. abstract Property<MediaTypeConfig>getMediaTypeConfig()Configuration class for various properties of the media types. final Provider<Directory>getProcessedSourcesDir()The directory of the test sources. final Provider<Directory>getProcessedResponsesDir()The directory of the previously (processed) requested responses. final Provider<FileTree>getMetaFiles()Collection of meta.json files for up-to-date checking. final Provider<RegularFile>getXmlReportFile()The directory to generate the XML report file into. final Provider<Directory>getHtmlReportDir()The directory to generate the HTML report into. final Provider<Directory>getFailureReportDir()The directory to copy failed tests into. final Unitrun()Runs the task. -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getReportDir
@OutputDirectory() abstract DirectoryProperty getReportDir()
The path to save reports and possible failures in.
-
getSilent
@Internal() abstract Property<Boolean> getSilent()
If squit should avoid printing anything if all tests pass.
-
getIgnoreFailures
@Input() abstract Property<Boolean> getIgnoreFailures()
If failures should be ignored. In that case the task passes, even if tests have failed.
-
getMediaTypeConfig
abstract Property<MediaTypeConfig> getMediaTypeConfig()
Configuration class for various properties of the media types.
-
getProcessedSourcesDir
@InputDirectory()@PathSensitive(value = PathSensitivity.RELATIVE) final Provider<Directory> getProcessedSourcesDir()
The directory of the test sources.
-
getProcessedResponsesDir
@InputDirectory()@PathSensitive(value = PathSensitivity.RELATIVE) final Provider<Directory> getProcessedResponsesDir()
The directory of the previously (processed) requested responses.
-
getMetaFiles
@Optional()@InputFiles()@PathSensitive(value = PathSensitivity.RELATIVE) final Provider<FileTree> getMetaFiles()
Collection of meta.json files for up-to-date checking.
-
getXmlReportFile
@OutputFile() final Provider<RegularFile> getXmlReportFile()
The directory to generate the XML report file into.
-
getHtmlReportDir
@OutputDirectory() final Provider<Directory> getHtmlReportDir()
The directory to generate the HTML report into.
-
getFailureReportDir
@OutputDirectory() final Provider<Directory> getFailureReportDir()
The directory to copy failed tests into.
-
-
-
-