Skip to content

API and associated Runner logic for performing multiple repetitions of a test #37

@stmontgomery

Description

@stmontgomery
Contributor

Description

This tracks making it possible to repeat a test in swift-testing multiple times. I imagine it would be best expressed as a Trait type, and would require associated logic in the Runner and Event subsystems.

rdar://92412320

Activity

grynspan

grynspan commented on Sep 29, 2023

@grynspan
Contributor

We had toyed with this before we shared the repo publicly. I think we ran into trouble because it wasn't clear what the fine semantics of a .repeating(n) trait would be.

grynspan

grynspan commented on Feb 26, 2024

@grynspan
Contributor

I think we've landed this as tools SPI?

stmontgomery

stmontgomery commented on Feb 27, 2024

@stmontgomery
ContributorAuthor

I think we've landed this as tools SPI?

This issue is tracking adding that ability on a per-test or -suite level, likely via a trait

schwa

schwa commented on Jun 12, 2025

@schwa

Any progress on this? A repeating/repeatable trait would be very handle. (I have a bug that is being caused by improper dictionary key iteration order and a repeating trait would help be guard against it somewhat)

grynspan

grynspan commented on Jun 12, 2025

@grynspan
Contributor

We are still tracking this issue, but it hasn't moved to the top of our queue yet.

added
traitsIssues and PRs related to the trait subsystem or built-in traits
on Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpublic-apiAffects public APItools integration🛠️ Integration of swift-testing into tools/IDEstraitsIssues and PRs related to the trait subsystem or built-in traits

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @stmontgomery@schwa@grynspan

        Issue actions

          API and associated Runner logic for performing multiple repetitions of a test · Issue #37 · swiftlang/swift-testing