RSpec alternatives and similar gems
Based on the "Frameworks" category.
Alternatively, view RSpec alternatives based on common mentions on social networks and blogs.
-
Cucumber
A home for issues that are common to multiple cucumber repositories -
shoulda-matchers
Simple one-liner tests for common Rails functionality -
minitest
minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. -
Spork
A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state. -
Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. -
Konacha
Test your Rails application's JavaScript with the mocha test framework and chai assertion library -
RR
RR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺ -
Pundit Matchers
A set of RSpec matchers for testing Pundit authorisation policies. -
RSpecTracer
RSpec Tracer is a specs dependency analyzer, flaky tests detector, tests accelerator, and coverage reporter tool for RSpec. It maintains a list of files for each test, enabling itself to skip tests in the subsequent runs if none of the dependent files are changed. It uses Ruby's built-in coverage library to keep track of the coverage for each test. -
Drawers
Group related classes together. No more silos. A solution to rails dystopia. -
ResponseMatcher
Solution for matching JSON response into RSpec request tests
Free Global Payroll designed for tech teams
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of RSpec or a related project?
Popular Comparisons
README
RSpec
Behaviour Driven Development for Ruby
Description
rspec is a meta-gem, which depends on the
rspec-core,
rspec-expectations
and rspec-mocks gems. Each of these
can be installed separately and loaded in isolation using require
. Among
other benefits, this allows you to use rspec-expectations, for example, in
Test::Unit::TestCase if you happen to prefer that style.
Conversely, if you like RSpec's approach to declaring example groups and
examples (describe
and it
) but prefer Test::Unit assertions and
mocha, rr
or flexmock for mocking, you'll be
able to do that without having to install or load the components of RSpec that
you're not using.
Documentation
See http://rspec.info/documentation/ for links to documentation for all gems.
Install
gem install rspec
Setup
rspec --init