RSpec Test Framework

Run and write RSpec tests for Ruby projects — let bindings, before hooks, mocking. The Ruby test runner.

SKILL.md

GitHub

RSpec Test Framework

Purpose

Provide RSpec test execution and generation for Ruby projects.

Usage

ruby generate-test.rb --source=lib/calculator.rb --output=spec/calculator_spec.rb --description="Division by zero"
ruby run-test.rb --file=spec/calculator_spec.rb

Output Format

JSON with success, passed, failed, total, and failures array.