flutter / flutter/flutter-intellij

Flutter Test template 'Additional args' not applied to configs created from gutter icon

Open
#8,842 0 comments 0 reactions 0 assignees View on GitHub
P2
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:
Image

## 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:**
Image

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:
Image

## Environment

- **IDE:** IntelliJ IDEA / Android Studio (latest stable)
- **Flutter plugin:** latest
- **OS:** macOS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.