learnxinyminutes-docs/Rakefile

20 lines
269 B
Ruby

task default: %w[test]
task :test do
failed = false
Dir["./tests/*.rb"].each do |test_file|
begin
ruby test_file
puts ""
rescue
puts "FAILED #{test_file}!"
puts ""
failed = true
end
end
if failed
exit 0
end
end