[ANN] minitest_tu_shim 1.3.3 Released

minitest_tu_shim version 1.3.3 has been released!

* <http://rubyforge.org/projects/bfts>

minitest_tu_shim bridges the gap between the small and fast minitest
and ruby's huge and slow test/unit.

Changes:

### 1.3.3 / 2013-08-29

* 1 minor enhancement:

  * Added assert_block because rails 3 and other old libs still use it.

* 3 bug fixes:

  * Cleaned up 1.9.3 warnings.
  * Minor fixes to tests to get them happy for minitest changes.
  * Updated tests to work with new minitest output and methods

Hi,

In <20130829225745.C6CA312081D@neon.ruby-lang.org>
  "[ANN] minitest_tu_shim 1.3.3 Released" on Thu, 29 Aug 2013 15:57:31 -0700,

minitest_tu_shim version 1.3.3 has been released!

* <http://rubyforge.org/projects/bfts>

minitest_tu_shim bridges the gap between the small and fast minitest
and ruby's huge and slow test/unit.

Is minitest really small? Is it old information?

  * The number of lines of minitest 1.3.0: 595
  * The number of lines of minitest 5.0.6: 3210
  * The number of lines of test/unit in Ruby 1.8.7: 3572

minitest 1.3.0:

  % wc -l /var/lib/gems/1.9.1/gems/minitest-1.3.0/lib/**/*.rb
     31 /var/lib/gems/1.9.1/gems/minitest-1.3.0/lib/minitest/mock.rb
     82 /var/lib/gems/1.9.1/gems/minitest-1.3.0/lib/minitest/spec.rb
    482 /var/lib/gems/1.9.1/gems/minitest-1.3.0/lib/minitest/unit.rb
    595 total

minitest 5.0.6:

  % wc -l /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/**/*.rb
     26 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/hoe/minitest.rb
    726 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest.rb
    649 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/assertions.rb
     12 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/autorun.rb
    423 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/benchmark.rb
    268 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/expectations.rb
     11 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/hell.rb
    220 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/mock.rb
    120 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/parallel_each.rb
      4 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/pride.rb
    143 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/pride_plugin.rb
    276 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/spec.rb
    287 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/test.rb
     45 /var/lib/gems/1.9.1/gems/minitest-5.0.6/lib/minitest/unit.rb
   3210 total

test/unit in Ruby 1.8.7:

  % wc -l /usr/lib/ruby/1.8/test/**/*.rb
   281 /usr/lib/ruby/1.8/test/unit.rb
    14 /usr/lib/ruby/1.8/test/unit/assertionfailederror.rb
   622 /usr/lib/ruby/1.8/test/unit/assertions.rb
   220 /usr/lib/ruby/1.8/test/unit/autorunner.rb
    43 /usr/lib/ruby/1.8/test/unit/collector.rb
   107 /usr/lib/ruby/1.8/test/unit/collector/dir.rb
    34 /usr/lib/ruby/1.8/test/unit/collector/objectspace.rb
    56 /usr/lib/ruby/1.8/test/unit/error.rb
    51 /usr/lib/ruby/1.8/test/unit/failure.rb
   160 /usr/lib/ruby/1.8/test/unit/testcase.rb
    80 /usr/lib/ruby/1.8/test/unit/testresult.rb
    76 /usr/lib/ruby/1.8/test/unit/testsuite.rb
   127 /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb
   268 /usr/lib/ruby/1.8/test/unit/ui/fox/testrunner.rb
   416 /usr/lib/ruby/1.8/test/unit/ui/gtk/testrunner.rb
   465 /usr/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb
    68 /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb
    46 /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb
   260 /usr/lib/ruby/1.8/test/unit/ui/tk/testrunner.rb
    40 /usr/lib/ruby/1.8/test/unit/util/backtracefilter.rb
    90 /usr/lib/ruby/1.8/test/unit/util/observable.rb
    48 /usr/lib/ruby/1.8/test/unit/util/procwrapper.rb
  3572 total

If I remove the following unused test runners from test/unit
in Ruby 1.8.7 count, I get 2163. It is smaller than minitest
5.0.6.

Unused test runners:
  268 /usr/lib/ruby/1.8/test/unit/ui/fox/testrunner.rb
  416 /usr/lib/ruby/1.8/test/unit/ui/gtk/testrunner.rb
  465 /usr/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb
  260 /usr/lib/ruby/1.8/test/unit/ui/tk/testrunner.rb

Recount:

  % ls /usr/lib/ruby/1.8/test/**/*.rb | grep -v '\(fox\|tk\)' | xargs wc -l
    281 /usr/lib/ruby/1.8/test/unit.rb
     14 /usr/lib/ruby/1.8/test/unit/assertionfailederror.rb
    622 /usr/lib/ruby/1.8/test/unit/assertions.rb
    220 /usr/lib/ruby/1.8/test/unit/autorunner.rb
     43 /usr/lib/ruby/1.8/test/unit/collector.rb
    107 /usr/lib/ruby/1.8/test/unit/collector/dir.rb
     34 /usr/lib/ruby/1.8/test/unit/collector/objectspace.rb
     56 /usr/lib/ruby/1.8/test/unit/error.rb
     51 /usr/lib/ruby/1.8/test/unit/failure.rb
    160 /usr/lib/ruby/1.8/test/unit/testcase.rb
     80 /usr/lib/ruby/1.8/test/unit/testresult.rb
     76 /usr/lib/ruby/1.8/test/unit/testsuite.rb
    127 /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb
     68 /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb
     46 /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb
     40 /usr/lib/ruby/1.8/test/unit/util/backtracefilter.rb
     90 /usr/lib/ruby/1.8/test/unit/util/observable.rb
     48 /usr/lib/ruby/1.8/test/unit/util/procwrapper.rb
   2163 total

Thanks,

···

Ryan Davis <ryand-ruby@zenspider.com> wrote:
--
kou

You're really going to compare using `wc -l`? Minitest has over a thousand lines of rdoc. Test/unit has about a quarter of that.

Minitest provides unit testing, a speccing DSL, curve fitting benchmark testing, Mocking, all while still being one of the fastest test frameworks out there.

Test/unit only has unit testing. And it isn't fast.

Yes, I'd still say that it is small if you're actually going to compare apples-to-apples.

Yes, I'd still say that minitest is fast, considering it still beats the pants off of test/unit on both positive and negative test benchmarks.

···

On Aug 29, 2013, at 18:39 , Kouhei Sutou <kou@cozmixng.org> wrote:

Hi,

In <20130829225745.C6CA312081D@neon.ruby-lang.org>
"[ANN] minitest_tu_shim 1.3.3 Released" on Thu, 29 Aug 2013 15:57:31 -0700,
Ryan Davis <ryand-ruby@zenspider.com> wrote:

minitest_tu_shim version 1.3.3 has been released!

* <http://rubyforge.org/projects/bfts>

minitest_tu_shim bridges the gap between the small and fast minitest
and ruby's huge and slow test/unit.

Is minitest really small? Is it old information?

* The number of lines of minitest 1.3.0: 595
* The number of lines of minitest 5.0.6: 3210
* The number of lines of test/unit in Ruby 1.8.7: 3572
...
If I remove the following unused test runners from test/unit
in Ruby 1.8.7 count, I get 2163. It is smaller than minitest
5.0.6.

Hi,

In <33E9F6FF-1022-4883-A8DF-58CBD89DE650@zenspider.com>
  "Re: [ANN] minitest_tu_shim 1.3.3 Released" on Thu, 29 Aug 2013 19:41:00 -0700,

minitest_tu_shim bridges the gap between the small and fast minitest
and ruby's huge and slow test/unit.

Is minitest really small? Is it old information?

* The number of lines of minitest 1.3.0: 595
* The number of lines of minitest 5.0.6: 3210
* The number of lines of test/unit in Ruby 1.8.7: 3572
...
If I remove the following unused test runners from test/unit
in Ruby 1.8.7 count, I get 2163. It is smaller than minitest
5.0.6.

You're really going to compare using `wc -l`? Minitest has over a thousand lines of rdoc. Test/unit has about a quarter of that.

Minitest provides unit testing, a speccing DSL, curve fitting benchmark testing, Mocking, all while still being one of the fastest test frameworks out there.

Test/unit only has unit testing. And it isn't fast.

Yes, I'd still say that it is small if you're actually going to compare apples-to-apples.

Thanks for describing about "small". I understand.

Yes, I'd still say that minitest is fast, considering it still beats the pants off of test/unit on both positive and negative test benchmarks.

Could you show the test benchmarks? I want to try to run
them on my environment.

Thanks,

···

Ryan Davis <ryand-ruby@zenspider.com> wrote:
--
kou