Skip to content

"Test: Run All Tests" shows error prompt but no error output #4032

@nickmeinhold

Description

@nickmeinhold

Describe the bug

When I use "Test: Run All Tests" I get this error message
Screen_Shot_2022-06-27_at_18 53 56
But I can't find the actual error output anywhere, there doesn't seem to be anything in the Debug console or the Output

I also get this, but as you can see I have a device attached
Screen_Shot_2022-06-27_at_19 07 40

The tests do seem to run but the only indication of that is in the Debug console - the Testing tab shows 0 tests passed in the summary but then individual tests show as passing

To Reproduce

EDIT: I went into each sub-folder of the monorepo mentioned below and tried running tests until I narrowed it down to a flutter plugin and then specifically to an integration test in the web platform plugin's example project, found here:
packages/flutter/plugins/flutter_box2d/flutter_box2d_web/example/
It's a web integration test and follows the convention from https://docs.flutter.dev/cookbook/testing/integration/introduction#5b-web but I'm guessing that doesn't work with the test runner?

Steps to reproduce the behavior:
(I will try to create a minimal repro but in case this is useful in the meantime)

  1. Clone https://github.com/enspyrco/monorepo
  2. Set "dart.projectSearchDepth": 8 (I don't think it needs to be as high as 8 but it worked so I left it as 8)
  3. Use the Test: Run All Tests command

Expected behavior
Tests show running state in the TESTING tab and all tests run.

  • Operating System and version:
    MacOS 12.4

  • VS Code version:
    1.68.1

  • Dart extension version:
    3.42.1

  • Dart/Flutter SDK version:
    Flutter 3.0.3

  • Target device (if the issue relates to Flutter debugging):
    I have tried targets of macos and an iphone SE running 15.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions