Class: MiniTest::Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/macruby.rb

Class Method Summary collapse

Class Method Details

.run_macruby_testsObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/minitest/macruby.rb', line 4

def self.run_macruby_tests
  dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
  Dir.chdir dir_path do
    Dir["**/test_*.rb"].each do |path|
      require path
    end
  end

  result = MiniTest::Unit.new.run(ARGV)

  exit!(result && result > 0 ? 1 : 0)
end