swift test
output in xunit format reports skipped tests as successful
#8066
Labels
swift test
output in xunit format reports skipped tests as successful
#8066
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
The
swift test
has option to generate xunit report from the test run. The resulting XML does not include skipped tests and they are attributed as successful instead.This is misleading because those tests never run and cannot be accounted for as working.
Expected behavior
The
XCTest
which are marked as skipped should be reported in the xunit output as skipped.Actual behavior
The
XCTests
which are marked as skipped are reported in the xunit format as successful.Steps to reproduce
XCTest
based testsXCSkip
error)Observe the XML output. The skipped test is marked as successful.
Swift Package Manager version/commit hash
No response
Swift & OS version (output of
swift --version ; uname -a
)swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
The text was updated successfully, but these errors were encountered: