rspec-test-framework

执行并为Ruby项目生成带有let绑定、before钩子和模拟支持的RSpec测试

📖 中文导读:执行并为Ruby项目生成带有let绑定、before钩子和模拟支持的RSpec测试 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: RSpec Test Framework description: Execute and generate RSpec tests for Ruby projects with let bindings, before hooks, and mocking support version: 1.0.0

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.