flutter / flutter/flutter-intellij

Can't run flutter test with `:` in a test description

Open
#8,575 0 comments 0 reactions 0 assignees View on GitHub
P2 topic-testing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

# Snippet
```dart
void main() {
test('foo: foo', () {
expect(1, 1);
});
}
```

Tap on run
Image

Result in debug console:
```console
/Users/vasilijisajkin/Documents/projects/mobifitness/mobi-trainer-client/.fvm/flutter_sdk/bin/flutter --no-color test --machine --start-paused --plain-name "foo\: foo" test/features/notification/integration/mobi_notification_test.dart
Testing started at 16:15 ...

No tests match "foo\: foo".
```

# Context

```console
vasilijisajkin@MacBook-Air-vasilij mobi-trainer-client % flutter doctor -v
[✓] Flutter (Channel stable, 3.32.5, on macOS 15.6.1 24G90 darwin-arm64, locale ru-RU) [484ms]
• Flutter version 3.32.5 on channel stable at /Users/vasilijisajkin/fvm/versions/3.32.5
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fcf2c11572 (4 months ago), 2025-06-24 11:44:07 -0700
• Engine revision dd93de6fb1
• Dart version 3.8.1
• DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3,4s]
• Android SDK at /Users/vasilijisajkin/Library/Android/sdk
• Platform android-36, build-tools 36.0.0
• ANDROID_HOME = /Users/vasilijisajkin/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1) [1 085ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17A400
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.1) [9ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)

[✓] VS Code (version 1.105.0) [8ms]
• VS Code at /Applications/context_menu/Visual Studio Code.app/Contents
• Flutter extension version 3.120.0

[✓] Connected device (3 available) [6,3s]
• iPhone (василий) (wireless) (mobile) • 00008101-001D69421E41001E • ios • iOS 18.6.2 22G100
• macOS (desktop) • macos • darwin-arm64 • macOS 15.6.1 24G90 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 141.0.7390.76

[✓] Network resources [1 430ms]
• All expected network resources are available.

• No issues found!
vasilijisajkin@MacBook-Air-vasilij mobi-trainer-client %
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.