Explain more specifically how to use flutter drive/what it does (#161450)

_Run integration tests for the project_ is not an accurate statement, as
there is nothing inherently about `flutter_driver` that is for
integration tests (for example, it could be just plain automation,
benchmarking, etc).

In addition, clarifies what the most common two arguments might be and
their defaults.

Co-authored-by: Andrew Kolos <andrewrkolos@gmail.com>
This commit is contained in:
Matan Lurey
2025-01-13 12:51:02 -08:00
committed by GitHub
parent 01fc23238e
commit 5f06c091b9
2 changed files with 31 additions and 1 deletions

View File

@@ -216,7 +216,11 @@ class DriveCommand extends RunCommandBase {
@override
final String description =
'Run integration tests for the project on an attached device or emulator.';
'Builds and installs the app, and runs a Dart program that connects to '
'the app, often to run externally facing integration tests, such as with '
'package:test and package:flutter_driver.\n'
'\n'
'Usage: flutter drive --target <lib/main.dart> --driver <test_driver/main_test.dart>.';
@override
String get category => FlutterCommandCategory.project;