#!/usr/bin/env fancy require: "fancy_spec" test_dir = "tests" { test_dir = ARGV[1] } if: $ ARGV[1] test_files = Directory list: "#{test_dir}/**/*.fy" if: (test_files empty?) then: { if: (Directory exists?: test_dir) then: { "No test files found. Add them to the tests/ directory." println } else: { "No tests/ directory found. Create it!" println } } else: { start = Time now test_files each: |f| { require: f } Console newline FancySpec SpecTest print_failures: start }