Prompt file imported from danilonovaisv/PROMPT-APP (
.windsurf/workflows/docs/test-runner/test-runner.md). Copyright stays with the author.
/test-runner - Test-Runner Command
Test-Runner command - Part of the MAx Framework command system.
Usage
# Run the command
/test-runner
# Show help
/test-runner --help
# Run with options
/test-runner [options]
Components
This command follows the MAx 3-component convention:
1. Python Handler
- File:
.max/core/commands/test-runner_handler.pyor.max/commands/test-runner_handler.py - Purpose: Main command implementation
- Features: Argument parsing, execution logic, error handling
2. Python Unit Tests
- File:
tests/test_test-runner.py - Purpose: Comprehensive test coverage
- Coverage: Unit tests, integration tests, error handling tests
3. MD Workflow Documentation
- File:
.max/workflows/test-runner.md(this file) - Purpose: Complete command documentation
- Content: Usage examples, parameters, implementation details
Implementation
The test-runner command is implemented as a Python handler class with:
- Execute method: Main command entry point
- Argument parsing: Flexible parameter handling
- Error handling: Robust exception management
- Help system: Built-in help and documentation
Testing
The command includes comprehensive unit tests:
- Initialization tests: Verify command setup
- Execution tests: Test main functionality
- Argument parsing tests: Validate parameter handling
- Error handling tests: Test error scenarios
- Integration tests: End-to-end testing
Run tests with:
python -m unittest tests.test_test-runner
Integration
This command integrates with:
- MAx Framework: Core command system
- Error handling: Standardized error management
- Logging: Integrated logging system
- Configuration: Framework configuration management
Convention Compliance
This command follows the MAx 3-component convention:
- ✅ Python handler implementation
- ✅ Python unit test coverage
- ✅ MD workflow documentation
Generated by MAx Convention Enforcer - Ensuring consistent command structure!