Wheels Test Generator
Generate TestBox BDD test specs for Wheels models, controllers, and integration tests. Supports validations, associations, and workflow testing.
Introduction
The Wheels Test Generator is a specialized engineering assistant designed for developers working within the Wheels CFML framework. It automates the creation of robust TestBox BDD (Behavior Driven Development) specifications, ensuring high code quality and comprehensive test coverage for your application's critical layers. By leveraging standard Wheels testing conventions, it helps maintain consistent setups, teardowns, and assertion patterns across your project, reducing the manual overhead typically associated with writing boilerplate test code.
-
Generates structured model specs covering validations, associations (hasMany, belongsTo), and model lifecycle events.
-
Creates controller specs that simulate requests, test action logic, process filters, and verify flash message outcomes.
-
Facilitates integration tests to validate end-to-end workflows, including CRUD operations, database state changes, and component interactions.
-
Provides template-based code generation that follows CFML best practices, ensuring compatibility with the TestBox framework.
-
Proactively assists in maintaining application health by suggesting test scaffolding whenever new models or controllers are introduced.
-
Activate this skill when you need to write unit or integration tests for your Wheels application.
-
Ensure your test environment is properly configured, specifically with a 'wheelstestdb' datasource, before running generated specs.
-
Inputs typically include the target model or controller name; the generator outputs standard component-based test files that extend wheels.Test.
-
Always turn off debugging in your CFML engine settings before executing these tests to prevent performance degradation or timeout issues.
-
Ideal for teams practicing TDD (Test Driven Development) or those looking to improve their codebase reliability through systematic automated testing.
-
Can be used in conjunction with wheels-model-generator and wheels-controller-generator to maintain a consistent development cycle.
Repository Stats
- Stars
- 200
- Forks
- 108
- Open Issues
- 8
- Language
- ColdFusion
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 1, 2026, 08:23 AM