Skip to content

Commands/SwiftTestTool.swift: update TestCaseSpecifier doc comments #6604

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
merged 1 commit into from
May 23, 2023
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
15 changes: 8 additions & 7 deletions Sources/Commands/SwiftTestTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,18 @@ struct TestToolOptions: ParsableArguments {
var enableCodeCoverage: Bool = false
}

/// Tests filtering specifier
///
/// This is used to filter tests to run
/// .none => No filtering
/// .specific => Specify test with fully quantified name
/// .regex => RegEx patterns for tests to run
/// .skip => RegEx patterns for tests to skip
/// Tests filtering specifier, which is used to filter tests to run.
public enum TestCaseSpecifier {
/// No filtering
case none

/// Specify test with fully quantified name
case specific(String)

/// RegEx patterns for tests to run
case regex([String])

/// RegEx patterns for tests to skip
case skip([String])
}

Expand Down