Skip to content

Test description is not parsed if it includes "> #3863

@mrverdant13

Description

@mrverdant13

Description

Some test descriptions that include double quotes result in parsing issues that blocks the execution of the actual test.

How to reproduce

Case 1

Enclosing double quotes with a wrapped content that starts with a >.

test('version is ">={version}', () {
  // My test
});
test('version is "> something"', () {
  // My test
});

Output:

image

Case 2

Single " char followed by a > char (without closing the quotes).

test('version is "> something', () {
  // My test
});

Output:

image

Expected behaviour

The tests descriptions are expected to be parsed and the underlying test to be run.

More context

  • OS: Windows 11
  • VS Code version: 1.65.0
  • Dart extension version: v3.36.0
  • Dart/Flutter SDK version: 2.16.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