spree-testing
Installation
SKILL.md
Spree Testing
Commands below use the Spree CLI form (
spree …, Docker). On a classic Rails app without the CLI (typical pre-5.4), use the native mapping in thespree-projectskill —bin/rails/bundle exec rakefrom the app root, paths without thebackend/prefix.
Spree's testing stack:
| Tool | Role |
|---|---|
| RSpec | Test framework (not Minitest) |
| Factory Bot | Test data (not fixtures) |
| Capybara | Browser-driving feature tests |
spree_dev_tools |
Spree-specific helpers (authorization stub, shared contexts, factory access) |
If you've worked with vanilla Rails: drop test/, drop fixtures/, write under spec/ with RSpec instead. Spree gems use this stack consistently — your app should too.