Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
awesome-rspec
Curated list of awesome RSpec related resources
https://github.com/Darhazer/awesome-rspec
Last synced: about 3 hours ago
JSON representation
-
Style guides and linters
- rubocop-rspec
- rubocop-factory_bot
- Even better specs - An opinionated set of best practices to support the creation of tests that are easy to read and maintain.
- RSpec Style Guide
-
Matchers
- action_mailer_matchers - RSpec matchers to test Rails' common ActionMailer functionality.
- db-query-matchers - RSpec matchers for database queries made by ActiveRecord.
- mongoid-rspec - RSpec matchers for Mongoid.
- human_time - Time and date comparisons for humans.
- n_plus_one_control - Matchers to ensure code doesn't produce N+1 queries.
- pundit-matchers - A set of RSpec matchers for testing Pundit authorisation policies.
- resque_spec - A test double of Resque for RSpec.
- rspec-any_of - Provides `any_of` and `all_of` matchers.
- rspec-graphql_matchers - GraphQL matchers.
- rspec-json_matchers - A collection of RSpec matchers for testing JSON data.
- rspec-benchmark - Performance testing matchers for RSpec.
- rspec-sidekiq - Simple testing of Sidekiq jobs via a collection of matchers and helpers.
- rspec-sqlimit - RSpec matcher to control SQL queries made by block of code.
- shoulda-matchers - One-liners to test common Rails functionality.
- active_record_change_matchers - Custom RSpec matchers for ActiveRecord record creation.
-
Mocks
- active_mocker - Creates stub classes from any ActiveRecord model.
- bunny-mock - A mock client for RabbitMQ modeled after the Bunny client in ruby.
- mock_redis - MockRedis provides the same interface as redis-rb, but it stores its data in memory instead of talking to a Redis server.
- mock5 - Create and manage API mocks with Sinatra.
- moctail - A mocking library for Ruby built with modern Ruby 3 APIs and with first-class support for type checking with Sorbet.
- mosoco - A minimalist stub & mock library.
- rspec-stubbed_env - Simple helper method to stub ENV values within RSpec tests.
- resque-mock - Resque mocking without redis.
- ruby-dns-mock - Mimic any DNS records for your test environment with fake DNS server.
- ruby-smtp-mock - Mimic any SMTP server behaviour for your test environment with fake SMTP server.
- spy - A simple opinionated mocking framework.
- stripe-ruby-mock - A mocking library for testing Stripe integration.
- stub_shell - Helps you to test your libraries that interact with the system through the Kernel backquote and system methods.
- testftpd - Simple FTP server written in pure Ruby, allowing integration testing of FTP client code without mocks and stubs.
- verified_double - Contract tests for mocks.
- rspec-stubbed_env - Simple helper method to stub ENV values within RSpec tests.
- stub_shell - Helps you to test your libraries that interact with the system through the Kernel backquote and system methods.
-
Parallel execution
- flatware - A parallel test runner for RSpec and Cucumber with pretty output.
- knapsack - Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
- parallel_tests - Speedup tests by running parallel on multiple CPU cores.
- rspecq - Distribute and run RSpec suites among parallel workers; for faster CI builds.
- test-queue - Parallel test runner for CI environments
- turbo_tests - Like parallel_tests but with incremental summarized output.
- rspec-distrib - Run specs in parallel on multiple machines.
-
Tools
- chefspec - Write RSpec examples and generate coverage reports for Chef recipes.
- crystallball - Regression Test Selection library for your RSpec test suite.
- database_cleaner - Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
- database_rewinder - Minimalist and ultra-fast database cleaner.
- dockerspec - A small Ruby Gem to run RSpec and Serverspec, Infrataster and Capybara tests against Dockerfiles or Docker images easily.
- factory_bot - A library for building database records.
- factory_bot_instruments - Instruments for benchmarking, tracing, and debugging Factory Girl models.
- factory_trace - Simple tool to maintain factories and traits from FactoryBot.
- impersonator - Ruby library to record and replay object interactions.
- mutant - Mutation testing.
- retest - A simple CLI to watch file changes and run their matching ruby specs.
- rspectre - Tool to remove unused parts of the specs.
- rspec_tracer - RSpec Tracer is a specs dependency analyzer, flaky tests detector, tests accelerator, and coverage reporter tool.
- rspec-wait - Wait for conditions in RSpec.
- test-prof - Tools to analyze test suite performance +helpers to write faster tests.
- vcr - Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
- with_model - Dynamically build an Active Record model (with table) within a test context.
- yardspec
- zapata - An Automatic Automated Test Writer
- super-diff - A more helpful way to view differences between complex data structures in RSpec.
-
Books
-
Articles
Programming Languages
Categories
Sub Categories
Keywords
ruby
28
rspec
23
testing
20
rails
10
rspec-matchers
8
testing-tools
5
minitest
5
mock
4
static-analysis
3
factory-bot
3
factory-girl
3
rubygems
2
rspec-custom-matchers
2
benchmark
2
activerecord
2
stub
2
fake-server
2
mock-server
2
tests
2
mocktools
2
parallel-tests
2
travis-ci
2
lint
2
performance-testing
2
coverage
2
rubocop
2
mongoid
1
backend
1
matcher
1
actionmailer
1
fake-smtp-server
1
ruby-gem
1
smtp
1
smtp-fake
1
smtp-mail
1
smtp-mock
1
smtp-server
1
auto-balancing
1
buildkite
1
ci-server
1
circle-ci
1
cucumber
1
pundit-matchers
1
pundit
1
authorization
1
authorisation
1
gem
1
measurements
1
ruby-on-rails
1
mocking
1