Added in version 3.3.
Functions to help creating and executing XCTest bundles.
An XCTest bundle is a CFBundle with a special product-type and bundle extension. The Mac Developer Library provides more information in the Testing with Xcode document.
The xctest_add_bundle
function creates a XCTest bundle named
<target> which will test the target <testee>. Supported target types
for testee are Frameworks and App Bundles:
xctest_add_bundle(
<target> # Name of the XCTest bundle
<testee> # Target name of the testee
)
The xctest_add_test
function adds an XCTest bundle to the
project to be run by ctest(1)
. The test will be named
<name> and tests <bundle>:
xctest_add_test(
<name> # Test name
<bundle> # Target name of XCTest bundle
)
The following variables are set by including this module:
True if the XCTest Framework and executable were found.
The path to the xctest command line tool used to execute XCTest bundles.
The directory containing the XCTest Framework headers.
The location of the XCTest Framework.