Skip to content

Fixup tests which mixed Swift Testing and XCTest asserts#10058

Open
owenv wants to merge 1 commit into
swiftlang:release/6.4.xfrom
owenv:owenv/testframework
Open

Fixup tests which mixed Swift Testing and XCTest asserts#10058
owenv wants to merge 1 commit into
swiftlang:release/6.4.xfrom
owenv:owenv/testframework

Conversation

@owenv
Copy link
Copy Markdown
Contributor

@owenv owenv commented May 13, 2026

I ran across a couple of tests which indirectly mixed test frameworks indirectly via the check helper, update its implementation to avoid this.

@owenv
Copy link
Copy Markdown
Contributor Author

owenv commented May 13, 2026

@swift-ci test


testDiagnostics(observability.diagnostics) { result in
result.check(
diagnostic: .contains("unable to delete"),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: this test used an FileSystemDouble which throws an exception when trying to remove a file or a tree. so I would expect this diagnostic to get emitted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see this warning locally, but maybe that's unique to my CI setup. I'll see what the CI jobs report and change this if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants