flutter_test
Run Flutter tests and get a summary of failed test results. For full error details, use flutter_get_result.
Instructions
Run flutter tests and return a summary of failed tests. Use flutter_get_result to get full error details for specific test IDs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_dir": "<project_dir>"
},
"name": "flutter_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_name | No | Filter tests by name (plain string match) | |
| test_path | No | Specific test file or directory to run (e.g. test/widget_test.dart) | |
| extra_args | No | Additional flags to pass to flutter test (e.g. ['--coverage', '--dart-define=KEY=VALUE']) | |
| project_dir | Yes | Path to the Flutter project directory |