wheels test
Run Wheels framework tests (core, app, or plugin tests).
Synopsis
Description
The wheels test
command runs the built-in Wheels framework test suite. This is different from wheels test run
which runs your application's TestBox tests. Use this command to verify framework integrity or test Wheels plugins.
Arguments
type
Test type: core
, app
, or plugin
app
servername
CommandBox server name
Current server
Options
--reload
Reload before running tests
true
--debug
Show debug output
false
--format
Output format
simple
--adapter
Test adapter
testbox
--help
Show help information
Test Types
Core Tests
Tests Wheels framework functionality
Verifies framework integrity
Useful after framework updates
App Tests
Runs application-level framework tests
Tests Wheels configuration
Verifies app-specific framework features
Plugin Tests
Tests installed Wheels plugins
Verifies plugin compatibility
Checks plugin functionality
Examples
Run app tests (default)
Run core framework tests
Run tests on specific server
Run with debug output
Skip reload
Output Example
Framework Test Categories
Model Tests
Validations
Associations
Callbacks
Properties
Calculations
Controller Tests
Filters
Caching
Provides/formats
Redirects
Rendering
View Tests
Helper functions
Form helpers
Asset helpers
Partials
Layouts
Dispatcher Tests
Routing
URL rewriting
Request handling
Parameter parsing
Configuration
Test Settings
In /config/settings.cfm
:
Test Database
Create separate test database:
Debugging Failed Tests
Enable debug mode
Check specific test file
Common issues
Database not configured: Check test datasource
Reload password wrong: Verify settings
Plugin conflicts: Disable plugins and retest
Cache issues: Clear cache and retry
Continuous Integration
GitHub Actions
Jenkins
Custom Framework Tests
Add tests in /tests/framework/
:
Performance Testing
Run with timing:
Monitor slow tests:
Test Isolation
Tests run in isolation:
Separate request for each test
Transaction rollback (if enabled)
Clean application state
Troubleshooting
Tests won't run
Reload issues
Memory issues
Best Practices
Run before deployment
Test after framework updates
Verify plugin compatibility
Use CI/CD integration
Keep test database clean
Difference from TestBox Tests
Feature
wheels test
wheels test run
Purpose
Framework tests
Application tests
Framework
Wheels Test
TestBox
Location
/wheels/tests/
/tests/
Use Case
Framework integrity
App functionality
See Also
wheels reload - Reload application
Last updated
Was this helpful?