<!--
{
  "availability" : [
    "Xcode: 16.0.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "swift: 6.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/SuiteTrait/isRecursive",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift Testing"
    ],
    "preciseIdentifier" : "s:7Testing10SuiteTraitP11isRecursiveSbvp"
  },
  "title" : "isRecursive"
}
-->

# isRecursive

Whether this instance should be applied recursively to child test suites
and test functions.

```
var isRecursive: Bool { get }
```

## Discussion

If the value is `true`, then the testing library applies this trait
recursively to child test suites and test functions. Otherwise, it only
applies the trait to the test suite to which you added the trait.

By default, traits are not recursively applied to children.

---

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)