Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rails-testing

БесплатноБез исполняемых скриптовНе проверен

Ruby on Rails testing best practices for writing effective, maintainable test suites with RSpec. This skill should be used when writing, reviewing, or…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Community Ruby on Rails Testing Best Practices

Comprehensive testing guide for Ruby on Rails applications, maintained by Community. Contains 46 rules across 8 categories, prioritized by impact to guide automated test generation, review, and refactoring.

When to Apply

Reference these guidelines when:

  • Writing new RSpec specs for models, requests, system tests, or jobs
  • Setting up FactoryBot factories with traits and sequences
  • Writing Capybara system tests for user journeys
  • Testing background jobs with Sidekiq or Active Job
  • Reviewing test code for anti-patterns (mystery guests, flaky tests, slow specs)
  • Optimizing test suite performance and CI pipeline speed
  • Organizing test files, shared examples, and custom matchers

Rule Categories by Priority

Priority Category Impact Prefix
1 Test Design & Structure CRITICAL design-
2 Test Data Management CRITICAL data-
3 Model Testing HIGH model-
4 Request & Controller Testing HIGH request-
5 System & Acceptance Testing MEDIUM-HIGH system-
6 Async & Background Job Testing MEDIUM async-
7 Test Performance & Reliability MEDIUM perf-
8 Test Organization & Maintenance LOW-MEDIUM org-

Quick Reference

1. Test Design & Structure (CRITICAL)

2. Test Data Management (CRITICAL)

3. Model Testing (HIGH)

4. Request & Controller Testing (HIGH)

5. System & Acceptance Testing (MEDIUM-HIGH)

  • system-page-objects - Encapsulate page interactions in page objects
  • [system-use-accessible-selectors](refe
Полный SKILL.md на GitHub

Установить rails-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/async-separate-enqueue-from-perform.mdreferences/async-test-after-commit.mdreferences/async-test-job-perform.mdreferences/async-test-mailer-delivery.mdreferences/async-use-fake-mode-default.mdreferences/data-avoid-fixture-coupling.mdreferences/data-build-over-create.mdreferences/data-factory-traits.mdreferences/data-minimal-attributes.mdreferences/data-sequence-unique-values.mdreferences/data-transient-attributes.mdreferences/design-avoid-conditional-logic.mdreferences/design-avoid-mystery-guest.mdreferences/design-behavior-over-implementation.mdreferences/design-descriptive-test-names.mdreferences/design-explicit-subject.mdreferences/design-four-phase-test.mdreferences/design-one-assertion-per-test.mdreferences/model-avoid-testing-framework.mdreferences/model-test-associations.mdreferences/model-test-callbacks-sparingly.mdreferences/model-test-custom-methods.mdreferences/model-test-enums.mdreferences/model-test-scopes.mdreferences/model-test-validations.mdreferences/org-avoid-deep-nesting.mdreferences/org-custom-matchers.mdreferences/org-file-structure-mirrors-app.mdreferences/org-shared-examples-sparingly.mdreferences/perf-avoid-before-all-mutation.mdreferences/perf-database-strategy.mdreferences/perf-parallel-tests.mdreferences/perf-profile-slow-specs.mdreferences/perf-quarantine-flaky-tests.mdreferences/request-json-response-structure.mdreferences/request-over-controller-specs.md

FAQ

Что делает скилл rails-testing?

Ruby on Rails testing best practices for writing effective, maintainable test suites with RSpec. This skill should be used when writing, reviewing, or refactoring Rails tests to ensure proper test design, data management, and coverage patterns. Triggers on tasks involving RSpec specs, model tests, request specs, system tests, factory definitions, Capybara interactions, Sidekiq job tests, or test suite optimization. Complementary to rails-dev, ruby-optimise, and ruby-refactor skills.

Как установить скилл rails-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rails-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить rails-testing с