ruby-ore / ore

Mine beautiful RubyGems from Ore
MIT License
241 stars 29 forks source link

Update minitest #32

Closed elskwid closed 10 years ago

elskwid commented 10 years ago

This updates the ore Minitest generator to use the newer Minitest name from version 5 rather than the 4.x MiniTest. I noticed that the spec for the Gemfile was still checking for :rubygems so this has been updated as well. All specs are passing.

Minitest commit notes:

elskwid commented 10 years ago

@postmodern, any thoughts on this? I have some other ideas I'd like to push around with Ore.

postmodern commented 10 years ago

Looks good, but are minitest/autorun and minitest/pride preferred or required to run minitest unit-tests?

elskwid commented 10 years ago

Right, good question. minitest/autorun gives the user the option to use unit, spec, and/or mock. It looks like this:

require "minitest"
require "minitest/spec"
require "minitest/mock"

Minitest.autorun

As far as minitest\pride, well, that's just a matter of pride. Ha. It outputs the colors, fabulous tests. I'm happy to pull that if you don't want it in. I think it's fun!

postmodern commented 10 years ago

OK, sold on minitest/autorun. I generally don't like test runners that just prints dots, gives me no information about what is being tested.

elskwid commented 10 years ago

Understood. Standby.

elskwid commented 10 years ago

Done. Thanks for taking a look at this!

postmodern commented 10 years ago

Is there a way to configure minitest to print the test names?

postmodern commented 10 years ago

Or is that something only available via minitest/spec?

elskwid commented 10 years ago

@postmodern I suspect you could do it easily by writing a reporter.