Test request: $ARGUMENTS
Runs Minitest tests and analyzes failures to provide actionable fixes.
/plugin marketplace add bastos/claude-code-plugin-marketplace/plugin install bastos-ruby-on-rails-plugins-ruby-on-rails@bastos/claude-code-plugin-marketplaceTest request: $ARGUMENTS
First, detect the testing framework:
test/ directory and test_helper.rb → MinitestminitestBased on detected framework, run appropriate commands:
| Pattern | Command |
|---|---|
| All tests | rails test |
| Single file | rails test test/models/user_test.rb |
| Single test | rails test test/models/user_test.rb:25 |
| System tests | rails test:system |
| Directory | rails test test/models/ |
For the requested test run:
Parse arguments to determine:
Run the tests using appropriate command
Analyze results:
For failing tests, provide:
Quick shortcuts:
failed: Re-run only failed tests (if the app tracks failures)If tests are failing, analyze the output and provide actionable fixes.