flutter / flutter/flutter-intellij
Flutter Test template 'Additional args' not applied to configs created from gutter icon
- Dominant language
- Java
- Stars
- 2k
- Forks
- 356
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 27
Description
## Description
When setting "Additional args" in the **Flutter Test run configuration template** (via Edit Configuration Templates → Flutter Test), newly created run configurations from the **gutter play icon** do not inherit those template defaults. The "Additional args" field is always empty, requiring manual editing of every new configuration.
gutter icon:
## Steps to Reproduce
1. Open **Run/Debug Configurations** → click **Edit configuration templates...** (bottom-left)
2. Select **Flutter Test** template
3. Set **Additional args** to e.g. `--dart-define=INTEGRATION_TEST_DEBUG=true`
4. Click **OK** to save the template
5. Open any test file and click the **green gutter play icon** next to a test
6. Open **Run/Debug Configurations** and inspect the newly created Flutter Test configuration
## Expected Behavior
The new configuration should inherit the "Additional args" value from the Flutter Test template (`--dart-define=INTEGRATION_TEST_DEBUG=true`).
## Actual Behavior
The "Additional args" field in the newly created configuration is **empty**. The user must manually edit every new run configuration to add the args.
## Screenshots
**Template correctly configured:**
The Flutter Test template has "Additional args" set, but new configurations created from the gutter icon do not pick them up.
So that when I click this, the new configuration is created without the Additional args:
## Environment
- **IDE:** IntelliJ IDEA / Android Studio (latest stable)
- **Flutter plugin:** latest
- **OS:** macOS
Contributor guide
Assessment
This issue has not been assessed yet.