What problem does it solve?
This Skill provides a structured, red-green-refactor TDD workflow for Rails applications, helping developers implement features, fix bugs, or change behavior with a focus on test-driven development practices.
Core Features & Use Cases
- Strict TDD Workflow: Enforces the creation of failing tests before production code, ensuring tests cover necessary functionality.
- Outside-In Development: Starts with high-level feature specs and refines to unit tests, ensuring a user-centric approach.
- Red-Green-Refactor: Utilizes the classic TDD cycle to write tests, write code, and refactor iteratively.
- betterspecs.org Style Guide: Adheres to best practices for RSpec tests, ensuring clarity and maintainability.
- Use Case: A developer is tasked with adding a new feature to a Rails application. This Skill guides them through writing a failing test, implementing the code, and refactoring as needed.
Quick Start
Use the test-driven-development skill to create a test for the new feature you're implementing in your Rails application.