Skip to content

Restore XML output for Swift Testing when --disable-xctest is passed. #7849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Aug 1, 2024

A previous PR, #7796, avoided Swift Testing stomping on XML output from XCTest when both libraries were running tests. However, there's a bug in the implementation where if you pass --disable-xctest, we don't end up telling Swift Testing to write any XML at all. This PR fixes that.

Tested with:

swift build
$(pwd)/.build/debug/swift-test --package-path /Volumes/Dev/Source/swift-testing --disable-xctest --xunit-output /dev/stdout

To confirm that XML output was produced for Swift Testing's test target (as an exemplar package that uses Swift Testing.)

A previous PR, #7796, avoided Swift Testing stomping on XML output from XCTest
when both libraries were running tests. However, there's a bug in the
implementation where if you pass `--disable-xctest`, we don't end up telling
Swift Testing to write any XML at all. This PR fixes that.
@grynspan grynspan added bug swift test Changes impacting `swift test` tool labels Aug 1, 2024
@grynspan grynspan self-assigned this Aug 1, 2024
@grynspan
Copy link
Contributor Author

grynspan commented Aug 1, 2024

@swift-ci please test

@grynspan grynspan requested a review from briancroom August 1, 2024 20:28
@grynspan grynspan merged commit f5407d7 into main Aug 1, 2024
5 checks passed
@grynspan grynspan deleted the jgrynspan/restore-xunit-output-for-swift-testing branch August 1, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug swift test Changes impacting `swift test` tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants