Skip to content

Tests with quotes in their names cannot be executed individually #2055

@kentcb

Description

@kentcb

Given this test:

void main() {
  test('a test with "quotes" in its name', () {});
}

Executing tests as a whole works fine:

image

But right-clicking and attempting to execute the test on its own results in the following debug console output:

No tests match regular expression "^a test with quotes in its name$".
Exited (1)

The quotes are stripped from the name and so there is no match.

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