Skip to content

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

Closed

Description

@lingocoder

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

Activity

  1. jdneo commented on Sep 29, 2023

    @jdneo
    Member

    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.

  2. lingocoder commented on Sep 29, 2023

    @lingocoder
    Author

    Thanks for looking into this, Sheng Chen (@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.

  3. jdneo commented on Sep 30, 2023

    @jdneo
    Member

    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!

  4. jdneo commented on Oct 25, 2023

    @jdneo
    Member

    Filed on issue upstream: microsoft/vscode#196521.

  5. WildPenquin commented on Nov 30, 2023

    @WildPenquin

    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).

  6. jdneo commented on Nov 30, 2023

    @jdneo
    Member

    WildPenguin (@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.

  7. WildPenquin commented on Nov 30, 2023

    @WildPenquin

    Sheng Chen (@jdneo),

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

  8. jdneo commented on Mar 20, 2024

    @jdneo
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions