warden_run_unit_tests
Execute PHPUnit unit tests in a Warden-managed Magento 2 environment by specifying project paths, test files, or custom PHPUnit arguments for efficient testing.
Instructions
Run unit tests using PHPUnit in the php-fpm container
Input Schema
Name | Required | Description | Default |
---|---|---|---|
config_file | No | PHPUnit configuration file (auto-detects phpunit.xml.dist or phpunit.xml) | |
extra_args | No | Additional PHPUnit arguments | |
project_path | Yes | Path to the project directory | |
test_path | No | Optional path to specific test file or directory |
Input Schema (JSON Schema)
{
"properties": {
"config_file": {
"default": "",
"description": "PHPUnit configuration file (auto-detects phpunit.xml.dist or phpunit.xml)",
"type": "string"
},
"extra_args": {
"default": [],
"description": "Additional PHPUnit arguments",
"items": {
"type": "string"
},
"type": "array"
},
"project_path": {
"description": "Path to the project directory",
"type": "string"
},
"test_path": {
"default": "",
"description": "Optional path to specific test file or directory",
"type": "string"
}
},
"required": [
"project_path"
],
"type": "object"
}