From 8a7ec83e16d399cf4dd014a7744274696a6d8788 Mon Sep 17 00:00:00 2001 From: Suzy Ratcliff Date: Tue, 13 May 2025 12:22:36 -0700 Subject: [PATCH 1/2] Add command line flag to enable experimental features --- Sources/Commands/SwiftTestCommand.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Commands/SwiftTestCommand.swift b/Sources/Commands/SwiftTestCommand.swift index a5b1e2cd919..987ca7dc40d 100644 --- a/Sources/Commands/SwiftTestCommand.swift +++ b/Sources/Commands/SwiftTestCommand.swift @@ -130,6 +130,11 @@ struct TestEventStreamOptions: ParsableArguments { @Option(name: .customLong("attachments-path"), help: "Path where attachments should be written (Swift Testing only). This path must be an existing directory the current user can write to. If not specified, any attachments created during testing are discarded.") var attachmentsPath: AbsolutePath? + + /// If experimental features should be enabled.. + @Option(name: .customLong("enable-experimental-features"), + help: .private) + var enableExperimentalFeatures: Bool } struct TestCommandOptions: ParsableArguments { From 2dfcbfce4780b2be00e852ffe5a721ff4107219b Mon Sep 17 00:00:00 2001 From: Suzy Ratcliff Date: Tue, 13 May 2025 12:54:12 -0700 Subject: [PATCH 2/2] Update command line name and type --- Sources/Commands/SwiftTestCommand.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Commands/SwiftTestCommand.swift b/Sources/Commands/SwiftTestCommand.swift index 987ca7dc40d..0e452815489 100644 --- a/Sources/Commands/SwiftTestCommand.swift +++ b/Sources/Commands/SwiftTestCommand.swift @@ -131,10 +131,10 @@ struct TestEventStreamOptions: ParsableArguments { help: "Path where attachments should be written (Swift Testing only). This path must be an existing directory the current user can write to. If not specified, any attachments created during testing are discarded.") var attachmentsPath: AbsolutePath? - /// If experimental features should be enabled.. - @Option(name: .customLong("enable-experimental-features"), + /// Which testing experimental features should be enabled + @Option(name: .customLong("enable-experimental-testing-feature"), help: .private) - var enableExperimentalFeatures: Bool + var enableExperimentalFeatures: String? } struct TestCommandOptions: ParsableArguments {