You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to build in one step and run tests with coverage in another step. This allows for measuring how long builds and tests take in CI. According to this post, this used to work in 5.6: https://forums.swift.org/t/swift-5-7-build-tests-enable-code-coverage/60345. This stopped working in 5.7 and is broken in 5.8. The tests run but the command fails when coverage data is being created. Error:
error: The folder “codecov” doesn’t exist
Expected behavior
Running pre-built tests with coverage executes the tests and produces coverage artifacts.
Actual behavior
The tests run but code coverage information fails to be produced.
Steps to reproduce
swift build --build-tests
swift test --skip-build --enable-code-coverage
Swift Package Manager version/commit hash
5.8
Swift & OS version (output of swift --version ; uname -a)
$ swift --version
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
$ uname -a
Darwin ***-arm 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered:
Description
I'd like to build in one step and run tests with coverage in another step. This allows for measuring how long builds and tests take in CI. According to this post, this used to work in 5.6: https://forums.swift.org/t/swift-5-7-build-tests-enable-code-coverage/60345. This stopped working in 5.7 and is broken in 5.8. The tests run but the command fails when coverage data is being created. Error:
Expected behavior
Running pre-built tests with coverage executes the tests and produces coverage artifacts.
Actual behavior
The tests run but code coverage information fails to be produced.
Steps to reproduce
Swift Package Manager version/commit hash
5.8
Swift & OS version (output of
swift --version ; uname -a
)$ swift --version
$ uname -a
The text was updated successfully, but these errors were encountered: