<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestSuite/init(forTestCaseWithName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTestSuite(cm)testSuiteForTestCaseWithName:"
  },
  "title" : "init(forTestCaseWithName:)"
}
-->

# init(forTestCaseWithName:)

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

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

## Parameters

`name`

A string that specifies a test case.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)