spree-testing

Automate model, controller, and feature tests for Spree applications.

4|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/spree/agent-skills --skill spree-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spree-testing
Source: https://github.com/spree/agent-skills/tree/main/skills/spree-testing
Command: npx skills add https://github.com/spree/agent-skills --skill spree-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rspec, factory_bot_rails, capybara, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides the tools and knowledge to quickly and effectively test Spree applications, including writing and executing automated tests.

Core Features & Use Cases

  • Automated Testing: Automate model, controller, and feature tests for Spree apps.
  • Integration with Test Tools: Seamlessly integrates with RSpec, Factory Bot, and Capybara for comprehensive test coverage.
  • Quick Setup: Provides step-by-step instructions to install the necessary gems and set up test environments.
  • Use Case: For developers who want to ensure their Spree application functions correctly through thorough testing.

Quick Start

Use the spree-testing skill to initialize a new test suite for your Spree project.

Frequently Asked Questions about spree-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up automated testing for a Spree application?

To set up automated testing for a Spree application, you need to install and configure RSpec, Factory Bot, and Capybara. This skill provides step-by-step instructions to install the necessary gems and initialize your test environment.

What testing frameworks are required for testing a Spree app?

Testing a Spree app requires RSpec, Factory Bot, and Capybara. These dependencies provide the necessary framework for executing comprehensive model, controller, and feature tests.

Can I use Capybara for feature testing in Spree?

Yes, you can use Capybara for feature testing in Spree. This skill integrates Capybara to automate feature tests, ensuring your application's user interfaces and workflows function correctly.

What is the best way to write model tests for Spree extensions?

The best way to write model tests for Spree is by using RSpec combined with Factory Bot. This skill offers an integrated suite that automates model testing and manages test data effectively.

Does spree-testing work outside of a Rails environment?

No, spree-testing is primarily designed for use in a Rails and Spree development context. It relies on Rails-specific gems like Factory Bot Rails to execute its automated testing suite.