@@ -330,13 +330,33 @@ 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+
346+ - Updates template test fixtures in ` tests/ ` directory
347+ - Updates installer test fixtures in ` installer/ ` directory
348+ - Handles baseline fixtures first
349+ - Updates all scenario-specific fixtures
350+ - Runs tests twice to properly handle fixture updates (first run may fail, second should pass)
351+
352+ ** DO NOT manually run ` UPDATE_FIXTURES=1 ` commands** - the ` ahoy update-fixtures ` command handles everything automatically.
353+
354+ ### Alternative: Manual Fixture Updates (Advanced)
355+
356+ For specific fixture updates or debugging, you can use manual commands:
357+
358+ ``` bash
359+ cd .vortex/installer
340360
341361# Update specific test fixtures
342362UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter " testInstall.*baseline"
@@ -352,9 +372,10 @@ UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter 'testInstall.*"services.*no.*cla
352372
353373### Fixture Update Process
354374
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
375+ 1 . ** Use ahoy update-fixtures** : This is the standard and recommended approach
376+ 2 . ** Alternative - Baseline First** : Update baseline fixtures manually if needed
377+ 3 . ** Alternative - Scenario Diffs** : Run individual scenario tests to update specific diffs
378+ 4 . ** Validation** : Verify tests pass without UPDATE_FIXTURES flag
358379
359380## Script Output Formatters
360381
@@ -397,7 +418,7 @@ info "Finished executing example operations in non-production environment."
397418
3984191 . ** Update Main Script** : Modify the script in the template (outside .vortex/)
3994202 . ** Update BATS Tests** : Update test assertions in ` .vortex/tests/bats/ `
400- 3 . ** Update Installer Fixtures** : Use ` UPDATE_FIXTURES=1 ` process
421+ 3 . ** Update Installer Fixtures** : Run ` ahoy update-fixtures ` from ` .vortex/ ` directory
401422
402423### Provision Script BATS Test Logic
403424
@@ -712,12 +733,13 @@ Each system:
712733
713734### 2. Installer System (.vortex/installer/)
714735
715- **Fixture Updates Can Be Finicky **:
736+ **Fixture Updates**:
716737
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
738+ - **Use `ahoy update-fixtures`** from `.vortex/` directory - this is the standard approach
739+ - The unified command updates all fixtures automatically
740+ - Runs tests twice to handle fixture updates properly (first run may fail, second should pass)
720741- Be patient - full test suite can take several minutes
742+ - For debugging specific scenarios, manual `UPDATE_FIXTURES=1` commands can be used
721743
722744**Handler Development**:
723745
@@ -771,10 +793,13 @@ yarn test --updateSnapshot # Update component snapshots
771793**Fixture Update Issues**:
772794
773795```bash
774- # Try baseline first
775- UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter "testInstall.*baseline"
796+ # RECOMMENDED: Use the unified command
797+ cd .vortex
798+ ahoy update-fixtures
776799
777- # Then individual scenarios
800+ # ALTERNATIVE: Manual updates for specific scenarios
801+ cd .vortex/installer
802+ UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter "testInstall.*baseline"
778803UPDATE_FIXTURES=1 ./vendor/bin/phpunit --filter ' testInstall.* " scenario_name" '
779804
780805# Check for test timeouts - increase if needed
@@ -1209,7 +1234,9 @@ $this->cmd('ahoy export-db', '! Containers are not running.', arg: $args);
12091234**Installer System** (`.vortex/installer/`):
12101235
12111236- **CRITICAL**: NEVER directly modify files under `.vortex/installer/tests/Fixtures/`
1212- - These are test fixtures that must be updated via `UPDATE_FIXTURES=1` mechanism
1237+ - These are test fixtures that must be updated via `ahoy update-fixtures` command from `.vortex/` directory
1238+ - The unified `ahoy update-fixtures` command handles all fixture updates automatically
1239+ - For debugging, manual `UPDATE_FIXTURES=1` commands can be used from `.vortex/installer/`
12131240- Always test with baseline scenario first, then individual scenarios
12141241- Preserve handler execution order and batching patterns
12151242
0 commit comments