Skip to content
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

Test Results tab does not display carriage returns on MacOS #4174

Open
nooj opened this issue Nov 13, 2024 · 0 comments
Open

Test Results tab does not display carriage returns on MacOS #4174

nooj opened this issue Nov 13, 2024 · 0 comments

Comments

@nooj
Copy link

nooj commented Nov 13, 2024

When running tests on MacOS (14.6 and prior), the "Test Results" tab does not move the cursor to the left at the end of a line (ie carriage return '\r'). It only performs a linefeed ('\n').

For example:

Line 1 text.
            Line 2 text.
                        Line 3 text.
                                    Eventu
ally, there is a line wrap.
                           Other lines con
tinue in the same way.

See screenshot at this link: https://community.platformio.org/t/output-terminal-issues-during-testing/43944

The "Terminal" tab correctly displays identical compiler/linker output as the "Test Results" tab. Presumably, whatever code the "Terminal" tab has to handle "\n" on Mac as "\r\n" does not happen in the "Test Results" code.

Here is a project which exhibits the error: https://github.com/platformio/platformio-examples/tree/develop/unit-testing/calculator

To reproduce:

  1. Use MacOS.
  2. Clone the repo https://github.com/platformio/platformio-examples.
  3. Open a new VS Code window.
  4. Open the project at platformio-examples/develop/unit-testing/calculator
  5. Trust the authors.
  6. Open the Testing sidebar.
  7. Run tests.
  8. View bad output in "Test Results" pane.
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

No branches or pull requests

1 participant