Skip to content

Run test using code lens does not open Test Results view #4951

@jibbers42

Description

@jibbers42

I'm guessing this is the correct repo as my issue in vscode repo was closed (microsoft/vscode#202895).

Describe the bug
A clear and concise description of what the bug is.
When using the "Run" code lens button, I'd like vscode to open the Test Results view. It sometimes opens the Debug Console and other times the only noticeable UI change is a badge number indicator showing on the Test Explorer icon. If I use the green button to the left in the "well" (I think that's what the area is called), then it does switch to the Test Results view.

If I change "testing.openTesting" to "openExplorerOnTestStart", then the code lens Run button only shows the badge indicator while the test is running (or maybe it sometimes will show Debug Console inconsistently as above, but I didn't see that). The green test button in the well does open the Text Explorer as configured.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a dart test
  2. Click on the "Run" code lens button

Expected behavior
Open Test Results view

Screenshots
298182581-a4acfa57-a4ce-4a1c-a3c1-ac25cb69be20

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: "Windows 10 Pro" 10.0 (Build 22631)
  • VS Code version: win 1.85.2
  • Dart extension version: 3.80.0
  • Dart/Flutter SDK version: 3.2.2/3.16.2
  • Target device (if the issue relates to Flutter debugging):

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions