Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

awesome-rspec

Curated list of awesome RSpec related resources
https://github.com/Darhazer/awesome-rspec

Last synced: about 1 hour ago
JSON representation

  • Style guides and linters

  • Matchers

  • 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