Looking for a way to clear the terminal when a new test result appears. I now feel cluttered in having the new test results appended before clearing the old tests. Any way to have it done?
My guard file:
guard :rspec do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
See the documentation:
bundle exec guard --clear