Skip to content

Fix output logs on integration test failure #1400

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

Conversation

matthewbastien
Copy link
Member

The logging of the SwiftOutputChannel on test failures was printing the previous test's logs rather than the current test. Fix this by moving the beforeEach() and afterEach() hooks into the test runner setup.

I've also opted to remove the console logging in SwiftOutputChannel as it was just polluting the logs with extra unnecessary info. This isn't needed anymore since the test failure logging is working now.

@matthewbastien matthewbastien merged commit 8b57d89 into swiftlang:main Feb 21, 2025
16 checks passed
@matthewbastien matthewbastien deleted the fix-integration-test-logging branch February 21, 2025 14:45
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