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, ExtensionAware, Reporting<TestTaskReports>, Task, VerificationTask, org.gradle.util.Configurable<Task>

@Incubating public class XcTest extends AbstractTestTask
Executes XCTest tests. Test are always run in a single execution.
Since:
4.2
  • Constructor Details

    • XcTest

      public XcTest()
  • Method Details

    • createTestExecutionSpec

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

      @InputDirectory public DirectoryProperty getTestInstallDirectory()
      Sets the test suite bundle or executable location
      Since:
      4.4
    • getRunScriptFile

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

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

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

      @SkipWhenEmpty @Optional @InputFile protected File getRunScript()
      Workaround for when the task is given an input file that doesn't exist
      Since:
      4.4