Class RunTestExecutable

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractExecTask<RunTestExecutable>
org.gradle.nativeplatform.test.tasks.RunTestExecutable
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, VerificationTask, BaseExecSpec, ExecSpec, ProcessForkOptions, Configurable<Task>

@DisableCachingByDefault(because="Not made cacheable, yet") public abstract class RunTestExecutable extends AbstractExecTask<RunTestExecutable> implements VerificationTask
Runs a compiled and installed test executable.
  • Constructor Details

    • RunTestExecutable

      public RunTestExecutable()
  • Method Details

    • exec

      protected void exec()
      Overrides:
      exec in class AbstractExecTask<RunTestExecutable>
    • getOutputDir

      @OutputDirectory public File getOutputDir()
    • setOutputDir

      public void setOutputDir(File outputDir)
    • getIgnoreFailures

      @Input public boolean getIgnoreFailures()
      Specifies whether the build should break when the verifications performed by this task fail.
      Specified by:
      getIgnoreFailures in interface VerificationTask
      Returns:
      false, when the build should break on failure, true when the failures should be ignored.
    • isIgnoreFailures

      @Internal public boolean isIgnoreFailures()
    • setIgnoreFailures

      public void setIgnoreFailures(boolean ignoreFailures)
      Specifies whether the build should break when the verifications performed by this task fail.
      Specified by:
      setIgnoreFailures in interface VerificationTask
      Parameters:
      ignoreFailures - false to break the build on failure, true to ignore the failures. The default is false.