Here's the simplest way to run multiple minitest files I can think of
ruby -e "Dir.glob('**/*_spec.rb').each { |f| require File.expand_path(f) }"Change suffix _spec to _test for test-unit style file.
ruby -e "Dir.glob('**/*_spec.rb').each { |f| require File.expand_path(f) }"Change suffix _spec to _test for test-unit style file.
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
2 comments:
`rake` is much simpler.
Hey Ryan,
I rethink again, you're right. Rake is not that hard and a lot cleaner. I would say they are equally hard for starting tiny project as I need to look up for the reference to user it for both cases.
When I was writing this blog, it is the first time I get a chance to play with Minitest. As an RSpec-only user, requiring rake to run the test felt alienate to me.
Thanks for make me reconsider rake again
Post a Comment