Skip to content

Debugging flutter tests fail if the descrription string has an interpolated value and a is composed of two concatenated strings #4250

@WorikQCI

Description

@WorikQCI

Describe the bug
If the description of the test has an interpolated value and a is composed of two concatenated strings the test will not run

To Reproduce

Write a test like the following and try to run it by clicking the debug option

image

import 'package:test/test.dart';

void main() async {
  //
  int foo = 1;
  test("Start string $foo " "  end string", () async {
    expect(true, true);
  });
}

Get this result:

Connecting to VM Service at http://127.0.0.1:64510/Y0ktArhJg9g=/ws
No tests match regular expression "^Start string .* " "  end string( \(variant: .*\))?$".
Exited (1)

Expected behavior

I expect the test to run.

Please complete the following information:

  • Operating System and version:
    MacOS 12.6
  • VS Code version:
Version: 1.72.2 (Universal)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:16:30.254Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
  • Dart extension version:
    v3.52.1

  • Dart/Flutter SDK version:
    Dart SDK version: 2.18.4 (stable) (Tue Nov 1 15:15:07 2022 +0000) on "macos_arm64"

  • Target device (if the issue relates to Flutter debugging):

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