Skip to content

Test tree shows duplicate tests after discovering tests + running tests when using LSP on Windows #3052

@BootBlock

Description

@BootBlock

There appears to be someplace within the file loading chain that may be normalising file paths to lowercase, while other parts of Dart-Code are not normalising the paths and so paths to files are being seen as being different even though they're in actuality the same.

This results in an issue - and potentially others - of test tree node duplication when running tests as suite keys are specified via file path.

This only happens when LSP is enabled.

image

Note that the passed another_test.dart node is a duplication of the grey version below it; they're the same test(s) but seen as different due to casing differences as mentioned above.

Versions (please complete the following information):

  • VS Code version: 1.52.1
  • Dart extension version: 3.18
  • Dart/Flutter SDK version: 2.10.4 / 1.26.0-2.0.pre.170

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions