mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
20 lines
269 B
Ruby
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
|