I want to be able to run a spec suite from the console. Something like described here http://interblah.net/how-minitest-works, but with specs.
No luck so far. Can someone give me a hint?
Thanks.
I want to be able to run a spec suite from the console. Something like described here http://interblah.net/how-minitest-works, but with specs.
No luck so far. Can someone give me a hint?
Thanks.
The most direct way is to have ruby load the appropriate files and Minitest run the tests.
lib
and test
directories. Let's do this by passing -Ilib:test
to ruby.-rminitest/autorun
to ruby.test/test_something.rb
.This is how that command would look:
$ ruby -Ilib:test -rminitest/autorun test/test_something.rb