-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Steps to Reproduce
- Build start flutter default app: flutter create variant_test
- In the test folder, open widget_test.dart
- Add the following parameter to existing testWidgets('Counter increment smoke test'...,
variant: TargetPlatformVariant.desktop()); - Attempt to run individual test and you'll get the error: No tests match regular expression...
There are NO other changes to the default code generated by flutter create, and only that one parameter to testWidgets causes the issue. Tests run if run from main, but not individual tests.
This is similar to dart issues: #1458 and #1492
Expected results:
Ability to run individual tests with no errors
Actual results:
No tests match regular expression....
Flutter doctor output:
flutter doctor -v
mfink@Martins-MBP-M1 variant_test % flutter doctor -v
[✓] Flutter (Channel dev, 2.4.0-4.0.pre, on macOS 11.4 20F71 darwin-arm, locale en-US)
• Flutter version 2.4.0-4.0.pre at /Users/mfink/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cc00e7e6bc (8 days ago), 2021-07-11 18:21:02 -0400
• Engine revision ed25e8f01e
• Dart version 2.14.0 (build 2.14.0-301.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/mfink/Library/Android/sdk
• Platform android-S, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• 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 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.58.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.24.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 11.4 20F71 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114
• No issues found!Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.