The crash
If you use nested SwiftTesting Suite definitions with the .datadogTesting trait, the testing process crashes.
@Suite(.datadogTesting)
struct SwiftTestingNestedSuiteTests {
struct NestedSuite {
@Test func testIsFound() async throws {
#expect(true)
}
}
}
Datadog SDK versions:
2.7.2
Last stable Datadog SDK version:
N/A
Volume:
100%
Testing Details
Running the project's unit tests on:
macOS 26.4.1 (25E253)
Xcode 26.2 (17C52)
iOS 26.0 (23A343) on iPhone 16
The crash
If you use nested SwiftTesting Suite definitions with the
.datadogTestingtrait, the testing process crashes.Datadog SDK versions:
2.7.2
Last stable Datadog SDK version:
N/A
Volume:
100%
Testing Details
Running the project's unit tests on:
macOS 26.4.1 (25E253)
Xcode 26.2 (17C52)
iOS 26.0 (23A343) on iPhone 16