Class

XCTestSuite

A collection (or suite) of test cases.

Declaration

class XCTestSuite : XCTest

Overview

Suites are typically managed for you automatically by Xcode. Only use XCTestSuite if you need to define your own custom test suites programmatically.

Topics

Creating Test Suites

class var `default`: XCTestSuite

Creates a suite of suites representing all test case methods found in the current runtime.

init(forTestCaseClass: AnyClass)

Creates a new suite containing all test methods found in testCaseClass.

Managing Tests

func addTest(XCTest)

Adds a test to the suite.

var tests: [XCTest]

All tests currently in the suite.

Relationships

Inherits From

Conforms To