Testing the Multiverse
summary
Shows how to test a gem against multiple dependency sets by creating per-version gemfiles under test, using BUNDLE_GEMFILE + bundle exec to run tests, and automating with a rake task called Multiverse. Uses bundle install --local to avoid network, recommends the appraisals gem to generate merged gemfiles, and builds a custom TestRunner to select suites. Solves bundle exec subshell contamination with Bundler.clean, parallelizes with threads (handles exit codes manually), and provides an in-process serial task for debugger-friendly runs.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:33Testing the Multiverse
- 6:50Test against Multiple Versions
- 14:00Appraisals File
- 14:20Appraisal Install
- 23:19The Test Suite
- 25:33Test Execution
- 27:59Threads
related talks
31mDemystifying the Ruby package ecosystem
38mAll you need is Rails (Engines): Compartmentalising your Monolith
33mRuby on Rails on Minitest
01h 44mLet’s Extend Rails With A Gem
35mWrangling Large Rails Codebases
29mRVM & Essential Rails Development Tools
40mMonoliths Between Microservices
37mDon't touch that!
