Skip to content

Improve test output readability, reducing redundant logs#552

Merged
ktoso merged 2 commits intoswiftlang:mainfrom
sidepelican:testresult_readbility
Feb 5, 2026
Merged

Improve test output readability, reducing redundant logs#552
ktoso merged 2 commits intoswiftlang:mainfrom
sidepelican:testresult_readbility

Conversation

@sidepelican
Copy link
Contributor

This is a minor improvement to the readability of test results.

Currently, using #expect(output.contains(expectedChunk)) causes the entire content of output to be displayed.
Since this content is already being printed to the console just before the check, it creates redundant and cluttered output, which makes it difficult to analyze results from the CLI.

I have adjusted the #expect calls to include the necessary context without letting the macro evaluate and print the full variable content.

Images

  • CLI
スクリーンショット 2026-02-05 15 01 53
  • Xcode
スクリーンショット 2026-02-05 15 02 04

@sidepelican sidepelican requested a review from ktoso as a code owner February 5, 2026 06:03
Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Thanks! Sounds good to me.

Thanks for including the screenshot

@ktoso ktoso merged commit 1fbab46 into swiftlang:main Feb 5, 2026
49 checks passed
@sidepelican sidepelican deleted the testresult_readbility branch February 6, 2026 00:09
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