# terminal (at exercism/ruby/)
gem install guard guard-shell
guard init shell
# Guardfile
guard :shell do
watch(/^(.+)\.rb$/) do |m|
`ruby -I"lib:test" #{m[1].chomp('_test')}_test.rb`
end
end
# terminal
gem install minitest-reporters
# test_helper.rb
require "minitest/reporters"
Minitest::Reporters.use!
# Guardfile
guard :shell do
watch(/^(.+)\.rb$/) do |m|
`ruby -I"lib:test" -r"./test_helper" #{m[1].chomp('_test')}_test.rb`
end
end
# test_helper.rb
require "minitest/reporters"
reporter_options = {
detailed_skip: false, # true by default
fast_fail: true, # false by default
color: true
}
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(reporter_options)]
# terminal (at exercism/ruby/)
guard --notify false
Interesting. Is this contributing to exercism open source?
I'm wonder if we do all these directions within the ruby directory or the specific exercise directory ( for example in helloword directory)?