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

# init(forBundlePath:)

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

## Declaration

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

## Parameters

- `bundlePath`: A string that represents a file path to a bundle.

## See Also

### Creating Test Suites

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