---
title: "init(forTestCaseWithName:)"
framework: xctest
role: symbol
role_heading: Initializer
path: "xctest/xctestsuite/init(fortestcasewithname:)"
---

# init(forTestCaseWithName:)

Creates a test suite that contains a test case with the specified name.

## Declaration

```swift
convenience init(forTestCaseWithName name: String)
```

## Parameters

- `name`: A string that specifies a test case.

## See Also

### Creating Test Suites

- [default](xctest/xctestsuite/default.md)
- [init(name:)](xctest/xctestsuite/init(name:).md)
- [init(forBundlePath:)](xctest/xctestsuite/init(forbundlepath:).md)
- [init(forTestCaseClass:)](xctest/xctestsuite/init(fortestcaseclass:).md)
