Closed
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI.
Description
See this message in the forums. Everything that was true then appears to be still true today.
Expected behavior
I can
swift build --build-tests --enable-code-coverage
swift test --skip-build --enable-code-coverage
without error and it will produce a coverage report
Actual behavior
error: Unknown option '--enable-code-coverage'
Steps to reproduce
Pick any arbitrary SPM project with tests and
swift build --build-tests --enable-code-coverage
swift test --skip-build --enable-code-coverage
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.9.0
Swift & OS version (output of swift --version ; uname -a
)
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Darwin davea-mbp16.corp.adobe.com 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64