Skip to content

Cannot skip build when listing tests #5739

Closed
@adam-fowler

Description

@adam-fowler

Description

Skip build no longer skips building the package when listing tests. Previously you could skip building the package with

swift test --list-tests --skip-build

With the new test list command

swift test list --skip-build

It builds the package before listing the tests

Expected behavior

swift test list --skip-build should not build the package

Actual behavior

swift test list --skip-build builds the package before listing the tests

Steps to reproduce

  1. swift package clean
  2. swift test list --skip-build

Swift Package Manager version/commit hash

No response

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

Apple Swift version 5.8-dev (LLVM f6b60d5b8f4b443, Swift ecccce61139bbc4)
Target: x86_64-apple-macosx13.0
Darwin Adams-MacBook-Pro.local 22.0.0 Darwin Kernel Version 22.0.0: Tue May 24 20:31:35 PDT 2022; root:xnu-8792.0.50.111.3~5/RELEASE_X86_64 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions