Closed elskwid closed 10 years ago
@postmodern, any thoughts on this? I have some other ideas I'd like to push around with Ore.
Looks good, but are minitest/autorun
and minitest/pride
preferred or required to run minitest unit-tests?
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!
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.
Understood. Standby.
Done. Thanks for taking a look at this!
Is there a way to configure minitest to print the test names?
Or is that something only available via minitest/spec
?
This updates the ore Minitest generator to use the newer
Minitest
name from version 5 rather than the 4.xMiniTest
. 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: