@@ -330,13 +330,32 @@ The installer uses a **baseline + diff** system for managing test fixtures:
330330
331331### Updating Fixtures
332332
333- ** Critical** : Use the proper fixture update mechanism:
333+ ** CRITICAL - Use the Unified Ahoy Command** :
334+
335+ The correct way to update fixtures is to use the unified ` ahoy update-fixtures ` command from the ` .vortex ` directory:
334336
335337``` bash
336- cd .vortex/installer
338+ cd .vortex
337339
338- # Update all fixtures
339- UPDATE_FIXTURES=1 composer test
340+ # This is the CORRECT way to update all fixtures
341+ ahoy update-fixtures
342+ ```
343+
344+ ** What this command does** :
345+ - Updates template test fixtures in ` tests/ ` directory
346+ - Updates installer test fixtures in ` installer/ ` directory
347+ - Handles baseline fixtures first
348+ - Updates all scenario-specific fixtures
349+ - Runs tests twice to properly handle fixture updates (first run may fail, second should pass)
350+
351+ ** DO NOT manually run ` UPDATE_FIXTURES=1 ` commands** - the ` ahoy update-fixtures ` command handles everything automatically.
352+
353+ ### Alternative: Manual Fixture Updates (Advanced)
354+
355+ For specific fixture updates or debugging, you can use manual commands:
356+
357+ ``` bash
358+ cd .vortex/installer
340359
341360# Update specific test fixtures
342361UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter " testInstall.*baseline"
@@ -352,9 +371,10 @@ UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter 'testInstall.*"services.*no.*cla
352371
353372### Fixture Update Process
354373
355- 1 . ** Baseline First** : Update baseline fixtures first
356- 2 . ** Scenario Diffs** : Run individual scenario tests to update their diffs
357- 3 . ** Validation** : Verify tests pass without UPDATE_FIXTURES flag
374+ 1 . ** Use ahoy update-fixtures** : This is the standard and recommended approach
375+ 2 . ** Alternative - Baseline First** : Update baseline fixtures manually if needed
376+ 3 . ** Alternative - Scenario Diffs** : Run individual scenario tests to update specific diffs
377+ 4 . ** Validation** : Verify tests pass without UPDATE_FIXTURES flag
358378
359379## Script Output Formatters
360380
@@ -397,7 +417,7 @@ info "Finished executing example operations in non-production environment."
397417
3984181 . ** Update Main Script** : Modify the script in the template (outside .vortex/)
3994192 . ** Update BATS Tests** : Update test assertions in ` .vortex/tests/bats/ `
400- 3 . ** Update Installer Fixtures** : Use ` UPDATE_FIXTURES=1 ` process
420+ 3 . ** Update Installer Fixtures** : Run ` ahoy update-fixtures ` from ` .vortex/ ` directory
401421
402422### Provision Script BATS Test Logic
403423
@@ -712,12 +732,13 @@ Each system:
712732
713733### 2. Installer System (.vortex/installer/)
714734
715- **Fixture Updates Can Be Finicky **:
735+ **Fixture Updates**:
716736
717- - The `UPDATE_FIXTURES=1` mechanism can have defects
718- - Try updating baseline first, then individual scenarios
719- - Use filtered test runs for specific scenarios
737+ - **Use `ahoy update-fixtures`** from `.vortex/` directory - this is the standard approach
738+ - The unified command updates all fixtures automatically
739+ - Runs tests twice to handle fixture updates properly (first run may fail, second should pass)
720740- Be patient - full test suite can take several minutes
741+ - For debugging specific scenarios, manual `UPDATE_FIXTURES=1` commands can be used
721742
722743**Handler Development**:
723744
@@ -771,10 +792,13 @@ yarn test --updateSnapshot # Update component snapshots
771792**Fixture Update Issues**:
772793
773794```bash
774- # Try baseline first
775- UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter "testInstall.*baseline"
795+ # RECOMMENDED: Use the unified command
796+ cd .vortex
797+ ahoy update-fixtures
776798
777- # Then individual scenarios
799+ # ALTERNATIVE: Manual updates for specific scenarios
800+ cd .vortex/installer
801+ UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter "testInstall.*baseline"
778802UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter ' testInstall.* " scenario_name" '
779803
780804# Check for test timeouts - increase if needed
@@ -1209,7 +1233,9 @@ $this->cmd('ahoy export-db', '! Containers are not running.', arg: $args);
12091233**Installer System** (`.vortex/installer/`):
12101234
12111235- **CRITICAL**: NEVER directly modify files under `.vortex/installer/tests/Fixtures/`
1212- - These are test fixtures that must be updated via `UPDATE_FIXTURES=1` mechanism
1236+ - These are test fixtures that must be updated via `ahoy update-fixtures` command from `.vortex/` directory
1237+ - The unified `ahoy update-fixtures` command handles all fixture updates automatically
1238+ - For debugging, manual `UPDATE_FIXTURES=1` commands can be used from `.vortex/installer/`
12131239- Always test with baseline scenario first, then individual scenarios
12141240- Preserve handler execution order and batching patterns
12151241
0 commit comments