Skip to content

Accept arbitrary strings in Swift Testing event stream version options #8944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Sources/Commands/SwiftTestCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,18 @@ struct TestEventStreamOptions: ParsableArguments {
help: .hidden)
var eventStreamOutputPath: AbsolutePath?

/// Legacy equivalent of ``eventStreamVersion``.
/// The experimental version number of Swift Testing's event stream to use.
///
/// Unlike ``eventStreamVersion``, this permits specifying a version which
/// is experimental.
@Option(name: .customLong("experimental-event-stream-version"),
help: .private)
var experimentalEventStreamVersion: Int?
var experimentalEventStreamVersion: String?

/// The schema version of swift-testing's JSON input/output.
/// The version number of Swift Testing's event stream to use.
@Option(name: .customLong("event-stream-version"),
help: .hidden)
var eventStreamVersion: Int?
var eventStreamVersion: String?

/// Experimental path for writing attachments (Swift Testing only.)
@Option(name: .customLong("experimental-attachments-path"),
Expand Down