Skip to content
Minitest + all the features you always wanted.
Branch: master
Clone or download
grosser Merge pull request #32 from grosser/grosser/5122
next minitest supports ruby 2.2
Latest commit f886477 Sep 29, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets self host assets Dec 30, 2016
bin mtest Oct 12, 2014
gemfiles next minitest supports ruby 2.2 Sep 29, 2019
lib support 5.12.12 Sep 28, 2019
spec test on 5.12 Sep 23, 2019
.travis.yml next minitest supports ruby 2.2 Sep 29, 2019
Gemfile better comment Dec 31, 2014
Gemfile.lock v3.4.0 Sep 23, 2019
MIT-LICENSE initial by Oct 12, 2014
Rakefile support latest rails 5.2 Sep 8, 2019 support 5.12.12 Sep 28, 2019
maxitest.gemspec test on 5.12 Sep 23, 2019

Minitest + all the features you always wanted.



  • Ctrl+c stops tests and prints failures
  • pastable rerun snippet for failures (disabled/integrated on rails 5)
  • multiple before & after blocks
  • around blocks around { |t| Dir.chdir(...) { } }
  • red-green output (disabled/integrated on rails 5)
  • mtest executable to run by line number and by folder (disabled/integrated on rails 5)
  • full backtrace for errors and assertions with verbose (-v)
  • let!
  • let_all execute once for all tests in a class and it's subclasses
  • order_dependent! to make your tests run in given order
  • Maxitest.static_class_order = true no longer sort tests class/sub-classes in random order
  • context for more expression
  • pending { assert false } is skip when it fails, but fails when it passes
  • implicit subject via require 'maxitest/implicit_subject'
  • xit to skip test (also does not call setup or teardown)
  • require 'maxitest/timeout' to make hanging tests fail after Maxitest.timeout seconds
  • require 'maxitest/threads' fail tests that leave extra threads running
  • require 'maxitest/global_must' (before autorun) disable deprecation on global must_* or global_expectations gem


gem install maxitest


require "maxitest/autorun"

... normal tests ...


  • everything vendored into 1 gem to avoid dependency madness
  • tested via rspec to avoid messing up our own tests by accident
  • fixes should go back to the original libraries
  • restrictive minitest dependency so nothing breaks by accident
  • ruby 1.9+
  • rake update to update all vendored gems


Michael Grosser
License: MIT
Build Status

You can’t perform that action at this time.