<!--
{
  "availability" : [

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

# init(forBundlePath:)

Creates a test suite with the bundle at the specified path.

```
convenience init(forBundlePath bundlePath: String)
```

## Parameters

`bundlePath`

A string that represents a file path to a bundle.

## 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)