Description
I am using Android Studio to create a Flutter application.
Using Android Studio, create the default "counter" Flutter project. Add two test cases to widget_test.dart
like this:
test('abc', () {
print('Called abc.');
});
test('abc 2', () {
print('Called abc 2');
});
Use the widget in the left gutter to run the first test case. Note that the tooltip text says "Run 'abc'" or "Debug 'abc'". The run configuration stored in Android Studio is also called "abc". From this, it looks like only that one test should run, but the console shows that both tests are executed.
Note that if one opens the "Run/Debug Configurations" dialog box, the descriptive text under "Test Name" is actually "Some pattern to match test names by." This is significantly different from the rest of the user experience, where it looks like this is the precise name of the test to run, not a pattern by which all matching tests will run.
It seems to me that a command that says "Run 'abc'" should do only that.
Studio Build: Build #AI-243.25659.59.2432.13423653, built on April 29, 2025
Runtime version: 21.0.7+9-b631.52 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Flutter version: 3.29.3 channel stable
Flutter Plugin: 85.3.1
OS: Ubuntu 24.04.2 LTS