Skip to content

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

Closed

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.

Activity

  1. DanTup commented on Oct 17, 2019

    @DanTup
    Member

    This might be covered by my fix for #2053 but I'll do some testing.

  2. added this to the v3.6.0 milestone on Oct 17, 2019
  3. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Oct 17, 2019
  4. DanTup commented on Oct 17, 2019

    @DanTup
    Member

    Yep, seems like that fix covered this (and now has an automated test). Thanks for the report!

    Screenshot 2019-10-17 at 8 46 07 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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