.context/docs/integration-tests.md
This directory contains end-to-end integration tests for FVM that validate real-world usage scenarios with actual Git operations and Flutter SDK installations.
The integration test suite is designed to complement the existing fast unit tests by providing thorough validation of FVM's core workflows using real operations rather than mocks.
fvm integration-test - Comprehensive Dart command with 38 integration tests covering all major FVM workflowsintegration_test_utils.dart - Utilities for creating isolated test environmentsinstallation_workflow_test.dart - Dart-based installation workflow testsproject_lifecycle_test.dart - Project lifecycle and configuration testsfvm use workflowfvm flutter)fvm dart)fvm spawn)fvm exec)fvm flavor)# Run all 38 integration tests
fvm integration-test
# Run in fast mode (skip heavy operations)
fvm integration-test --fast
# Run specific test phase (1-11)
fvm integration-test --phase 3
# Run specific test by number (1-38)
fvm integration-test --test 15
# List all available test phases
fvm integration-test --list-phases
# Run cleanup only
fvm integration-test --cleanup-only
# Run Dart-based integration tests
dart test test/integration/
Update the test configuration constants in lib/src/commands/integration_test_command.dart:
static const testChannel = 'stable';
static const testRelease = '3.19.0';
static const testCommit = 'fb57da5f94';
_logTest and _logSuccessThe integration tests can be run in CI environments with:
When adding new integration tests: