api / org.gradle.nativeplatform.test.xctest / SwiftXCTestBinary

SwiftXCTestBinary

@Incubating interface SwiftXCTestBinary : SwiftBinary, TestComponent

An test binary built from Swift source.

Since
4.4

Functions

getExecutableFile

abstract fun getExecutableFile(): Provider<RegularFile>

Returns the executable test file for this binary.

getInstallDirectory

abstract fun getInstallDirectory(): Provider<Directory>

Returns the installation directory for this binary.

getLinkTask

abstract fun getLinkTask(): Provider<out AbstractLinkTask>

Returns the link task for this binary.

getRunScriptFile

abstract fun getRunScriptFile(): Provider<RegularFile>

Returns the script for running this binary.

getRunTask

abstract fun getRunTask(): Provider<out XCTest>

Inherited Functions

getCompileModules

abstract fun getCompileModules(): FileCollection

Returns the modules to use to compile this binary. Includes the module file of this binary's dependencies.

getCompileTask

abstract fun getCompileTask(): Provider<SwiftCompile>

Returns the compile task for this binary.

getLinkLibraries

abstract fun getLinkLibraries(): FileCollection

Returns the link libraries to use to link this binary. Includes the link libraries of the component's dependencies.

getModule

abstract fun getModule(): Provider<String>

Returns the name of the Swift module that this binary defines.

getModuleFile

abstract fun getModuleFile(): Provider<RegularFile>

Returns the module file for this binary.

getRuntimeLibraries

abstract fun getRuntimeLibraries(): FileCollection

Returns the runtime libraries required by this binary. Includes the runtime libraries of the component's dependencies.

getSourceCompatibility

abstract fun getSourceCompatibility(): Provider<SwiftVersion>

Returns the Swift language level to use to compile the source files.

getSwiftSource

abstract fun getSwiftSource(): FileCollection

Returns the Swift source files of this binary.

getTargetPlatform

abstract fun getTargetPlatform(): SwiftPlatform

{@inheritDoc}

isTestable

abstract fun isTestable(): Boolean

Returns true if this binary has testing enabled.

Inheritors

SwiftXCTestBundle

interface SwiftXCTestBundle : SwiftXCTestBinary

An XCTest executable for tests implemented in Swift.

SwiftXCTestExecutable

interface SwiftXCTestExecutable : SwiftXCTestBinary, ComponentWithExecutable, ComponentWithInstallation

An XCTest executable for tests implemented in Swift.