Skip to content

feat: add --flavor option to test command#1530

Merged
marcossevilla merged 1 commit intoVeryGoodOpenSource:mainfrom
pdenert:feat/add-flavor-to-test-command
Mar 11, 2026
Merged

feat: add --flavor option to test command#1530
marcossevilla merged 1 commit intoVeryGoodOpenSource:mainfrom
pdenert:feat/add-flavor-to-test-command

Conversation

@pdenert
Copy link
Contributor

@pdenert pdenert commented Mar 11, 2026

Summary

Implements feature request #1529 to add a --flavor option to the very_good test command, mirroring Flutter's native flutter test --flavor support.

Status

READY

Description

  • Added flavor property (String?) to FlutterTestOptions
  • Added --flavor option to TestCommand argParser
  • Passes --flavor <value> through to the underlying flutter test command via the arguments list
  • Updated tests to verify the option is correctly forwarded

Usage Examples

# Run tests with a specific flavor
very_good test --flavor development

# Combine with other options
very_good test --flavor staging --coverage --min-coverage 100

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@pdenert pdenert requested a review from a team as a code owner March 11, 2026 10:57
@marcossevilla marcossevilla merged commit 009656a into VeryGoodOpenSource:main Mar 11, 2026
21 checks passed
@vgvbot vgvbot mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants