Skip to content

Commit 44b2f90

Browse files
committed
Opt into per-test-case repetition via CLI flags
1 parent 47a6688 commit 44b2f90

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/Testing/ABI/EntryPoints/EntryPoint.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ func entryPoint(passing args: __CommandLineArguments_v0?, eventHandler: Event.Ha
8383
}
8484
#endif
8585

86+
// If the client has requested repetitions via CLI flags, turn off plan-level repetition
87+
// and use test-case-level repetition instead.
88+
if args.repetitions != nil || args.repeatUntil != nil {
89+
configuration.shouldUseLegacyPlanLevelRepetition = false
90+
}
91+
8692
// If the caller specified an alternate event handler, hook it up too.
8793
if let eventHandler {
8894
configuration.eventHandler = { [oldEventHandler = configuration.eventHandler] event, context in

0 commit comments

Comments
 (0)