Module: RunnyTest

Defined in:
lib/runny_test.rb,
lib/runny_test/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#run_all_testsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/runny_test.rb', line 9

def run_all_tests
  tests  = ARGV[0..ARGV.length]
  @missing_test_files = []

  if tests.nil?
    puts "Usage: runny <test_file1> <test_file2>..."
  else
    tests.each do |test|
      run_test(test)
    end
  end

  unless @missing_test_files.empty?
    puts "Nonexistant files:\n"

    @missing_test_files.each do |f|
      puts "#{f}\n"
    end
  end
end