<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestObservation/testBundleWillStart(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(pl)XCTestObservation(im)testBundleWillStart:"
  },
  "title" : "testBundleWillStart(_:)"
}
-->

# testBundleWillStart(_:)

Notifies the observer immediately before any tests in a test bundle begin.

```
optional func testBundleWillStart(_ testBundle: Bundle)
```

## Parameters

`testBundle`

The bundle containing the tests that will be executed.

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