swift-testing icon indicating copy to clipboard operation
swift-testing copied to clipboard

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

Open stmontgomery opened this issue 2 years ago • 5 comments

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

stmontgomery avatar Sep 28 '23 22:09 stmontgomery

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 avatar Sep 29 '23 18:09 grynspan

I think we've landed this as tools SPI?

grynspan avatar Feb 26 '24 17:02 grynspan

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

stmontgomery avatar Feb 27 '24 03:02 stmontgomery