QuickTestSuite

public class QuickTestSuite : XCTestSuite

A base class for a class cluster of Quick test suites, that should correctly build dynamic test suites for XCTest to execute.

  • Construct a test suite for a specific, selected subset of tests and test cases (rather than the default, which as all test cases).

    If this method is called multiple times for the same test case class, e.g..

    FooSpec, testBar FooSpec, testBar

    It is expected that the first call should return a valid test suite, and all subsequent calls should return nil.

    Declaration

    Swift

    @objc
    public static func selectedTestSuite(forTestCaseWithName name: String, testName: String?) -> QuickTestSuite?

    Parameters

    name

    The name of the XCTastCase/QuickSpec subclass.

    testName

    The name of the individual test to run (if specified).

    Return Value

    A valid test case (if tests were added to the test suite to run), or nil (if tests were not added to the test suite to run)