Skip to content

Request for the ability to run tests in a Package with a given tag from the command line #591

Open
@dimsumthinking

Description

@dimsumthinking

Description

When running tests for a package from the command-line using swift test I'd love a flag that allows me to run the tests for a given tag.

It would also be nice to be able to write more complicated predicates so that I could run them for:

tag1. (just those whose tags include tag1)
~tag1 or !tag1 (all items who's tags do not include tag1)
no-tags (any untagged item)
tag1 & tag2 (must be tagged with both)
tag1 | tag2 (must be tagged with either)

Sorry if this is too vague - but I had to give up on the command line at the point that I just wanted to run tests for a given tag.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

swift-testing version/commit hash

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    command-line experience⌨️ enhancements to the command line interfaceenhancementNew feature or requestswiftpm-integration📦 Swift Package Manager integration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions