Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Convert test output newlines to \r\n #1011

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

erikced
Copy link
Contributor

@erikced erikced commented Jan 29, 2024

Motivation

As is documented in the testing api documentation VSCode expects test output to have \r\n newlines, which is not the default value for many tools and it is up to the extension to convert them.

Implementation

N/A

Automated Tests

Not implemented, TestController currently lacks unit tests.

Manual Tests

Run a ruby unit test with multiline output, compare output with a run executed in the terminal.

Test output is sent to vscode's terminal which uses \r\n to terminate
lines. Convert any line just ending with \n to \r\n so that test output
is not scrambled.
@erikced erikced requested a review from a team as a code owner January 29, 2024 21:03
@erikced erikced requested review from andyw8 and egiurleo January 29, 2024 21:03
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@vinistock vinistock merged commit ca4f02a into Shopify:main Jan 30, 2024
6 checks passed
@vinistock vinistock added the bugfix This PR will fix an existing bug label Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix This PR will fix an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants