Wheels Test Generator

Generate TestBox BDD test specs for CFWheels models, controllers, and integrations.

203|108|Updated Jan 13, 2011
One-click install
npx skills add https://github.com/wheels-dev/wheels --skill wheels-test-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Wheels Test Generator
Source: https://github.com/wheels-dev/wheels/tree/main/.claude/skills/wheels-test-generator
Command: npx skills add https://github.com/wheels-dev/wheels --skill wheels-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the creation of comprehensive TestBox BDD test specs for CFWheels models, controllers, and integration workflows. It ensures high code quality, reliability, and maintainability by providing structured templates and best practices for testing.

Core Features & Use Cases

  • Model Test Templates: Generates specs for testing model validations, associations, and custom methods.
  • Controller Test Templates: Creates specs for verifying controller actions, filters, and redirects.
  • Integration Test Templates: Provides templates for end-to-end testing of user workflows and CRUD operations.
  • Use Case: After creating a Post model, use this skill to generate a test spec that verifies its validations (e.g., title presence), associations (e.g., hasMany comments), and CRUD operations. This ensures your model behaves exactly as expected, catching bugs early and saving you debugging time.

Quick Start

Example Model Test:

component extends="wheels.Test" { function testValidatesPresenceOfTitle() { model = model("Post").new(title=""); assert("!model.valid()"); } }

Frequently Asked Questions about Wheels Test Generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate BDD test specs for my Wheels models?

Generate comprehensive BDD test specs by using templates that cover model validations, associations, and custom methods. The Skill creates TestBox-formatted specs that verify your model behaves as expected, catching bugs early and ensuring repeatable test execution across validations and CRUD operations.

Can I use TestBox to write integration tests for Wheels controllers?

Yes. TestBox BDD specs can verify controller actions, filters, redirects, and end-to-end user workflows. The Skill generates templates for controller test specs that follow Wheels testing conventions, ensuring full coverage of request handling and response behavior.

What should I test in my Wheels models to ensure code quality?

Test model validations (presence, format, uniqueness), associations (hasMany, belongsTo), and custom methods. The Skill provides structured templates that generate specs for these scenarios, ensuring your model layer is reliable and maintainable before integration testing begins.

How do I set up proper test teardown and migrations for Wheels integration tests?

Integration test specs require correct setup and teardown procedures plus migration considerations to isolate test state. The Skill generates templates adhering to Wheels testing conventions that handle database state management and ensure tests run independently and repeatably.

Does TestBox support browser-based end-to-end testing workflows in Wheels?

TestBox BDD specs generated by this Skill include templates for browser-based end-to-end testing of user workflows and CRUD operations. These integration templates verify complete application behavior, complementing unit tests of models and controllers.