Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Enables utility packages to work correctly with the env:up command by processing their requirements (plugins, themes, secrets) and ensuring proper execution timing. This allows developers to use utility packages
for environment configuration during manual testing and development workflows.
Changes
Testing Instructions
Test 1: Basic Utility Package with Required Plugins
Setup: Create a test utility package
mkdir -p test-utilities/plugin-config
Test:
Create qit.json with utility
Start environment
Expected:
Test 2: Utility Package with Secrets
Setup:
Expected:
Test without secrets:
Expected:
Test 3: Validation - Reject Test Packages as Utilities
Setup:
Test:
Expected:
Test 4: Timing - Plugin-Dependent Operations
Setup:
Test:
Expected:
Note: This test demonstrates that utilities now run after plugin activation, allowing them to use plugin-registered post types, taxonomies, and other features.
Test 5: --global-setup Flag
Test:
Create environment with multiple utilities
Expected:
Test 6: Multiple Utilities with Mixed Requirements
Setup:
Utility 1: Disable onboarding
Utility 2: Seed test data
Test:
Expected:
Test 7: Backward Compatibility
Test with qit.json using legacy global_setup field:
Expected:
Test with run:e2e:
php src/qit-cli.php run:e2e woocommerce
--test-package=./test-utilities/plugin-config
Expected: