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

Refactor The Rendering of Output In The Test Results Panel #1618

Closed
lingocoder opened this issue Sep 28, 2023 · 8 comments
Closed

Refactor The Rendering of Output In The Test Results Panel #1618

lingocoder opened this issue Sep 28, 2023 · 8 comments
Labels

Comments

@lingocoder
Copy link

The Problem

Rendering of the text in the Test Results panel is practically unreadable…

issue 1618 test results -10 a

Steps to reproduce

  1. Download and decompress this reproducer
  2. Open the project in vscode
  3. Run the sole test in the project
  4. Observe the Test Results panel

Version Info

Visual Studio Code - Insiders
Version: 1.83.0-insider (user setup)
Commit: 623feb6ddd36…
Date: 2023-09-28T11:51:23.482Z (7 hrs ago)
Electron: 25.8.2

OS: Windows_NT x64 10.0.19045

@jdneo
Copy link
Member

jdneo commented Sep 29, 2023

I can also reproduce it. But when running the second time and so on, it becomes normal.

I guess it's an upstream regression. I need to find a way to reproduce it via the official extension sample, and file an issue at upstream.

@lingocoder
Copy link
Author

Thanks for looking into this, @jdneo

…But when running the second time and so on, it becomes normal.…

I haven't been as lucky as you have on retries. In my case, it happens without fail every time I run any test.

Test failures are the worst because the more text output to the view (exception stack traces, for example) , the less readable stuff is.

@jdneo
Copy link
Member

jdneo commented Sep 30, 2023

My feeling is that it's an upstream bug, the VS Code testing API does not expose anything that can control the font/style.

Unfortunately, I tried the extension sample hoping to reproduce it and file an issue to VS Code but failed.

I guess it might be related with the markdown format. This extension uses markdown content to set the test status.

I'm in vacation right now, may not have time to dig deeper into it. If anyone can help investigate the issue, that would be so helpful!

@jdneo
Copy link
Member

jdneo commented Oct 25, 2023

Filed on issue upstream: microsoft/vscode#196521.

@WildPenquin
Copy link

Hi, any workaround for this problem?

All my tests are useless when run via the plugin. I can not get the output window to normal formatting (sorry for the noise, I know these are not supposed to be support channels).

@jdneo
Copy link
Member

jdneo commented Nov 30, 2023

@WildPenquin

I found a workaround for this issue. After running a test, you can click the delete button

Screenshot 2023-11-30 at 19 29 19

Then the output of all the following test execution becomes normal.

@WildPenquin
Copy link

@jdneo,

Thanks, but that workaround does not have any effect here. All test result formats are still wrong / nearly unreadable.

@jdneo
Copy link
Member

jdneo commented Mar 20, 2024

I've tried couple of times and I cannot reproduce this issue with:

Version: 1.88.0-insider
Commit: f7c827a5e0ddbba66425ea54e33430bce8f53c84
Date: 2024-03-20T05:49:22.227Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.88.0-insider Chrome/120.0.6099.291 Electron/28.2.6 Safari/537.36

Should be fixed upstream. Please leave comment if it's still observable.

@jdneo jdneo closed this as completed Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants