testing-standards

Standardize Rails testing workflows with RSpec, FactoryBot, and Docker.

7|3|Updated May 25, 2015
One-click install
npx skills add https://github.com/rockcodelabs/kw-app --skill testing-standards-rockcodelabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-standards
Source: https://github.com/rockcodelabs/kw-app/tree/main/.agents/skills/testing-standards
Command: npx skills add https://github.com/rockcodelabs/kw-app --skill testing-standards-rockcodelabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes Rails testing practices by providing a comprehensive guide for RSpec, FactoryBot, and Docker-based workflows, helping teams achieve consistent test quality and faster feedback.

Core Features & Use Cases

  • Comprehensive testing guidance for model, service, and request specs using RSpec and FactoryBot.
  • Docker-first workflow to align local, CI, and staging environments.
  • Best-practice patterns for test organization, shared contexts, and helpers to support TDD.
  • Use Case: A team migrating to a dockerized testing setup to improve reliability and onboarding.

Quick Start

Run the test suite inside Docker to reproduce the recommended workflow:

  • docker-compose exec -T app bundle exec rspec

Frequently Asked Questions about testing-standards

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

FAQPage Schema
How do I standardize Rails testing workflows with Docker and RSpec?

Standardize Rails testing by applying comprehensive RSpec and FactoryBot guidelines executed within Dockerized environments, ensuring reliable, repeatable test results across local and CI setups.

What is the recommended file layout for RSpec model, service, and request specs?

The recommended layout organizes model, service, and request specs using best-practice patterns for shared contexts and helpers, supporting TDD and maintaining consistent test organization.

How do I run RSpec tests inside a Docker container for Rails?

Run RSpec tests inside Docker using 'docker-compose exec -T app bundle exec rspec', aligning local, CI, and staging environments for faster feedback.

Can I use FactoryBot with Docker-based Rails testing environments?

Yes, use FactoryBot with Docker-based Rails testing; the workflow provides comprehensive guidance for factories, model, service, and request specs to support TDD.

What's the best way to align local and CI Rails testing environments?

Use a Docker-first workflow to standardize execution across local, CI, and staging, improving reliability and onboarding for teams migrating to dockerized testing.

When do I need a dockerized testing setup for Rails TDD?

Adopt a dockerized testing setup when migrating to improve reliability and onboarding, enforcing a structured environment for RSpec, FactoryBot, and TDD practices for repeatable results.