maestro_cli 0.0.7
maestro_cli: ^0.0.7 copied to clipboard
CLI for Maestro.
maestro_cli #
Command-line tool for maestro_test.
Installation #
From pub.dev #
$ dart pub global activate maestro_cli
From git #
- Make sure that you have Dart >= 2.17 installed (it comes with Flutter 3).
- Clone the repo.
- Go to
packages/maestro_cli. - Run
dart pub global activate --source path .
Now you can should be able to run maestro in your terminal. If you can't and
the error is something along the lines of "command not found", make sure that
you've added appropriate directories to PATH:
- on Unix-like systems, add
$HOME/.pub-cache/bin - on Windows, add
%USERPROFILE%\AppData\Local\Pub\Cache\bin
Usage #
First run #
On first run, maestro will download artifacts it needs to the artifact path.
By default it is $HOME/.maestro, but you can change it by setting
MAESTRO_ARTIFACT_PATH environment variable.
To learn about commands, run:
$ maestro --help
Bootstrap #
To use Maestro in your Flutter project, you need 4 things:
- have
maestro.tomlfile in the root of the project (i.e next topubspec.yaml) - have
maestro_testadded as adev_dependencyinpubspec.yaml - have
integration_testadded as adev_dependencyinpubspec.yaml - have
test_driver/integration_test.dart - have
integration_test/app_test.dart
Run maestro bootstrap to automatically do 1, 2, 3, 4, and most of 5.