← ClaudeAtlas

rspeclisted

Use when running RSpec on a Rails project — re-running only failed examples, parallelizing with parallel_tests, generating coverage, or bisecting test-order failures. Multi-project via RSPEC_PROFILE.
tuannv14/claude-team-toolkit · ★ 1 · Testing & QA · score 70
Install: claude install-skill tuannv14/claude-team-toolkit
# /rspec — Rails test runner Wraps `bundle exec rspec` with structured output parsing and selective retry. No external credentials. Profile resolution: `--profile` → `RSPEC_PROFILE` → `~/.rspec/active_profile` → `[default]`. ## Overview Wraps `bundle exec rspec` with structured JSON output parsing and selective retry. No external credentials. Profiles isolate per-project test settings (parallel workers, seed strategy, rails_env). ## When to Use - Running RSpec test suites with structured failure output - Re-running only failed examples (after a fix attempt) - Parallelizing with `parallel_tests` (multi-core machines, CI) - Bisecting test-order failures (`--bisect`) - Coverage reports via simplecov ## When NOT to Use - Non-Rails Ruby tests → bare `rspec` works fine - Minitest projects → use `rake test`, not this skill - E2E / browser tests → not RSpec's job - Production debugging → tests are not a debugger ## Profile config `~/.rspec/credentials` (mode 600 — though profiles rarely contain secrets): ```ini [default] project_path = . rails_env = test workers = 1 seed_strategy = random # or "fixed:42" for repro [ci] project_path = . rails_env = test workers = 4 # parallel via parallel_tests seed_strategy = fixed:1234 ``` ## Helpers > Shared profile/INI/`ctt_*` pattern reference: [profiles-and-credentials](../profiles-and-credentials/SKILL.md). ```bash source "$HOME/.claude-team-toolkit/lib/credentials.sh" ctt_load_creds rspec "$PROFILE" cd