minitest
✓在 Rails 應用程序中編寫快速、可維護的 Minitest 測試的專家指南。在編寫測試、從 RSpec 轉換、調試測試失敗、提高測試性能或遵循測試最佳實踐時使用。涵蓋模型測試、策略測試、請求測試、系統測試、固定裝置和 TDD 工作流程。
SKILL.md
Write performant, maintainable, and non-brittle tests for Rails applications using Minitest and fixtures.
| Model | test/models/ | Validations, associations, business logic methods | | Policy | test/policies/ | Pundit authorization policies | | Request | test/requests/ | Full HTTP request/response cycle | | Controller | test/controllers/ | Controller actions (prefer request tests) | | System | test/system/ | Critical user flows with real browser |
| Service | test/services/ | Service objects and complex operations | | Job | test/jobs/ | Background job behavior | | Mailer | test/mailers/ | Email content and delivery |
在 Rails 應用程序中編寫快速、可維護的 Minitest 測試的專家指南。在編寫測試、從 RSpec 轉換、調試測試失敗、提高測試性能或遵循測試最佳實踐時使用。涵蓋模型測試、策略測試、請求測試、系統測試、固定裝置和 TDD 工作流程。 來源:thinkoodle/rails-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/thinkoodle/rails-skills --skill minitest- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 minitest?
在 Rails 應用程序中編寫快速、可維護的 Minitest 測試的專家指南。在編寫測試、從 RSpec 轉換、調試測試失敗、提高測試性能或遵循測試最佳實踐時使用。涵蓋模型測試、策略測試、請求測試、系統測試、固定裝置和 TDD 工作流程。 來源:thinkoodle/rails-skills。
如何安裝 minitest?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/thinkoodle/rails-skills --skill minitest 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/thinkoodle/rails-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01