Skip to content
grosserPublic

About

Minitest + all the features you always wanted.

Resources

Stars

484 stars

Watchers

5 watching

Forks

 
 

Latest commit

 

History

54 Commits

Folders and files

Repository files navigation

Minitest + all the features you always wanted.

Failure

Features

  • Ctrl+c stops tests and prints failures
  • pastable rerun snippet for failures
  • multiple before & after blocks
  • around blocks around { |t| Dir.chdir(...) { t.call } }
  • red-green output
  • mtest executable to run by line number and by folder
  • full backtrace for errors and assertions with verbose (-v)
  • before :all + after :all with require 'maxitest/before_and_after_all'
  • let!
  • order_dependent! to make your tests run in given 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)

Install

gem install maxitest

Usage

require "maxitest/autorun"

... normal tests ...

Development

  • 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

TODO

  • make ctrl+c fix its own gem
  • before :all / after :all / around :all
  • minitest 4 version for those stuck on rails 3

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status

About

Minitest + all the features you always wanted.

Resources

Stars

484 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages