# \[ANN\] minitest 5.7.0 Released

**URL:** <https://rubytalk.org/t/ann-minitest-5-7-0-released/73075>\
**Category:** ruby-talk\
**Created:** [27 May 2015 21:42 UTC](https://rubytalk.org/t/ann-minitest-5-7-0-released/73075 "2015-05-27T21:42:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [27 May 2015 21:42 UTC](https://rubytalk.org/t/ann-minitest-5-7-0-released/73075/1 "2015-05-27T21:42:59Z")

</div>

minitest version 5.7.0 has been released!

\* home: \<[https://github.com/seattlerb/minitest](https://github.com/seattlerb/minitest)\>  
\* bugs: \<[https://github.com/seattlerb/minitest/issues](https://github.com/seattlerb/minitest/issues)\>  
\* rdoc: \<[http://docs.seattlerb.org/minitest](http://docs.seattlerb.org/minitest)\>  
\* vim: \<[https://github.com/sunaku/vim-ruby-minitest](https://github.com/sunaku/vim-ruby-minitest)\>  
\* emacs: \<[https://github.com/arthurnn/minitest-emacs](https://github.com/arthurnn/minitest-emacs)\>

minitest provides a complete suite of testing facilities supporting  
TDD, BDD, mocking, and benchmarking.

&nbsp;&nbsp;&nbsp;&nbsp;"I had a class with Jim Weirich on testing last week and we were  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowed to choose our testing frameworks. Kirk Haines and I were  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paired up and we cracked open the code for a few test  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frameworks...

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I MUST say that minitest is \*very\* readable / understandable  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;compared to the 'other two' options we looked at. Nicely done and  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thank you for helping us keep our mental sanity."

&nbsp;&nbsp;&nbsp;&nbsp;-- Wayne E. Seguin

minitest/unit is a small and incredibly fast unit testing framework.  
It provides a rich set of assertions to make your tests clean and  
readable.

minitest/spec is a functionally complete spec engine. It hooks onto  
minitest/unit and seamlessly bridges test assertions over to spec  
expectations.

minitest/benchmark is an awesome way to assert the performance of your  
algorithms in a repeatable manner. Now you can assert that your newb  
co-worker doesn't replace your linear algorithm with an exponential  
one!

minitest/mock by Steven Baker, is a beautifully tiny mock (and stub)  
object framework.

minitest/pride shows pride in testing and adds coloring to your test  
output. I guess it is an example of how to write IO pipes too. 😛

minitest/unit is meant to have a clean implementation for language  
implementors that need a minimal set of methods to bootstrap a working  
test suite. For example, there is no magic involved for test-case  
discovery.

&nbsp;&nbsp;&nbsp;&nbsp;"Again, I can't praise enough the idea of a testing/specing  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;framework that I can actually read in full in one sitting!"

&nbsp;&nbsp;&nbsp;&nbsp;-- Piotr Szotkowski

Comparing to rspec:

&nbsp;&nbsp;&nbsp;&nbsp;rspec is a testing DSL. minitest is ruby.

&nbsp;&nbsp;&nbsp;&nbsp;-- Adam Hawkins, "Bow Before MiniTest"

minitest doesn't reinvent anything that ruby already provides, like:  
classes, modules, inheritance, methods. This means you only have to  
learn ruby to use minitest and all of your regular OO practices like  
extract-method refactorings still apply.

Changes:

### 5.7.0 / 2015-05-27

\* 1 major enhancement:

&nbsp;&nbsp;\* assert\_raises now matches subclasses of the expected exception types. (jeremyevans)

\* 3 minor enhancements:

&nbsp;&nbsp;\* Added :block type for minitest/spec's #infect\_an\_assertion. (jeremyevans)  
&nbsp;&nbsp;\* Inline verification error messages in minitest/mock for GC performance. (zamith)  
&nbsp;&nbsp;\* assert\_raises defaults to RuntimeError if not specified. (jeremyevans)

\* 4 bug fixes:

&nbsp;&nbsp;\* Added 'class' to minitest/mock's overridden\_methods list. (zamith)  
&nbsp;&nbsp;\* Added file/line to infect\_an\_assertion's class\_eval call. (jeremyevans)  
&nbsp;&nbsp;\* Cleared UnexpectedError's mesg w/ generic string.  
&nbsp;&nbsp;\* Fixed non-proc-oriented expectations when used on proc target. (jeremyevans)
