java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.testing.AbstractTestTask
org.gradle.nativeplatform.test.xctest.tasks.XCTest
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Reporting<TestTaskReports>, Task, VerificationTask, Configurable<Task>

@DisableCachingByDefault(because="Not made cacheable, yet") public abstract class XCTest extends AbstractTestTask
Executes XCTest tests. Test are always run in a single execution.
Since:
4.5
  • Constructor Details

    • XCTest

      public XCTest()
  • Method Details

    • createTestExecutionSpec

      protected org.gradle.nativeplatform.test.xctest.internal.execution.XCTestTestExecutionSpec createTestExecutionSpec()
      Description copied from class: AbstractTestTask
      Creates test execution specification. For internal use only.
      Specified by:
      createTestExecutionSpec in class AbstractTestTask
    • getTestInstallDirectory

      @PathSensitive(RELATIVE) @InputDirectory public DirectoryProperty getTestInstallDirectory()
      Sets the test suite bundle or executable location
    • getRunScriptFile

      @Internal("Covered by getRunScript") public RegularFileProperty getRunScriptFile()
      Returns test suite bundle or executable location
    • getWorkingDirectory

      @Internal public DirectoryProperty getWorkingDirectory()
      Returns the working directory property for this test.
    • createTestExecuter

      protected org.gradle.api.internal.tasks.testing.TestExecuter<org.gradle.nativeplatform.test.xctest.internal.execution.XCTestTestExecutionSpec> createTestExecuter()
      Description copied from class: AbstractTestTask
      Creates test executer. For internal use only.
      Specified by:
      createTestExecuter in class AbstractTestTask
    • getObjectFactory

      @Inject protected abstract ObjectFactory getObjectFactory()
    • getRunScript

      @SkipWhenEmpty @Optional @PathSensitive(ABSOLUTE) @InputFile protected @Nullable File getRunScript()
      Workaround for when the task is given an input file that doesn't exist
    • setTestNameIncludePatterns

      public XCTest setTestNameIncludePatterns(List<String> testNamePattern)
      Sets the test name patterns to be included in execution. Classes or method names are supported, wildcard '*' is supported. For more information see the user guide chapter on testing. For more information on supported patterns see TestFilter
      Overrides:
      setTestNameIncludePatterns in class AbstractTestTask