Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kentcb opened this issue Oct 17, 2019 · 2 comments
Closed

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

kentcb opened this issue Oct 17, 2019 · 2 comments
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Milestone

Comments

@kentcb
Copy link

kentcb commented Oct 17, 2019

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.

@DanTup
Copy link
Member

DanTup commented Oct 17, 2019

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

@DanTup DanTup added this to the v3.6.0 milestone Oct 17, 2019
@DanTup DanTup added in testing Relates to test execution of Dart/Flutter tests for end users is bug labels Oct 17, 2019
@DanTup
Copy link
Member

DanTup commented Oct 17, 2019

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
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Projects
None yet
Development

No branches or pull requests

2 participants