Skip to content

Feature Request: support swift test --filter with swift-testing package #7027

@Sajjon

Description

@Sajjon

Description

Similar to swiftlang/swift-testing#70 it would also be great if we could support filtering of tests like Jest supports test path pattern.

I think we should be able to filter on test function name and display name (i.e. "foo" in Test("foo"), but maybe also Suite display name?

Expected behavior

To be able to control which tests to run from CLI

Actual behavior

Cannot control which tests to run from CLI.

Steps to reproduce

No response

swift-testing version/commit hash

f8e8961b48d53d3272dacd7431257ed87260b3a1

Swift & OS version (output of swift --version && uname -a)

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0
Darwin Alexanders-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Tue Oct  3 22:40:26 PDT 2023; root:xnu-10002.41.8~15/RELEASE_ARM64_T6020 arm64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions