Skip to content

Nested SwiftTesting Suites causes crash #252

Description

@Mordil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions