Skip to content

Commit 11ebe9e

Browse files
authored
Add --experimental-attachments-path to swift test. (#8170)
This PR adds the given experimental command-line argument to `swift test` to allow writing attachments to a user-supplied directory when using Swift Testing. In the future, we will formally propose this flag as part of the attachments feature. XCTest on Darwin would need separate changes to support this argument and they are beyond the scope of this PR. XCTest on non-Darwin platforms (corelibs-xctest) does not support attachments. Resolves rdar://141225464.
1 parent d2a9630 commit 11ebe9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Commands/SwiftTestCommand.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ struct TestEventStreamOptions: ParsableArguments {
119119
@Option(name: .customLong("event-stream-version"),
120120
help: .hidden)
121121
var eventStreamVersion: Int?
122+
123+
/// Experimental path for writing attachments (Swift Testing only.)
124+
@Option(name: .customLong("experimental-attachments-path"),
125+
help: .private)
126+
var experimentalAttachmentsPath: AbsolutePath?
122127
}
123128

124129
struct TestCommandOptions: ParsableArguments {

0 commit comments

Comments
 (0)