class MiniTest::Unit

Public Class Methods

run_macruby_tests() click to toggle source
# 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