---
title: testInvocations
framework: xctest
role: symbol
role_heading: Type Property
path: xctest/xctestcase/testinvocations
---

# testInvocations

An array of invocations that represents each test method in the test case.

## Declaration

```swift
class var testInvocations: [NSInvocation] { get }
```

## See Also

### Creating Tests Programmatically

- [init(invocation:)](xctest/xctestcase/init(invocation:).md)
- [init(selector:)](xctest/xctestcase/init(selector:).md)
- [invocation](xctest/xctestcase/invocation.md)
- [invokeTest()](xctest/xctestcase/invoketest().md)
- [record(_:)](xctest/xctestcase/record(_:).md)
- [recordFailure(withDescription:inFile:atLine:expected:)](xctest/xctestcase/recordfailure(withdescription:infile:atline:expected:).md)
- [defaultTestSuite](xctest/xctestcase/defaulttestsuite.md)
