---
title: isRecursive
framework: testing
role: symbol
role_heading: Instance Property
path: testing/suitetrait/isrecursive
---

# isRecursive

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

## Declaration

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

## Discussion

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.
