method
test_methods
v2_1_10 -
Show latest stable
- Class:
MiniTest::Unit::TestCase
test_methods()public
No documentation available.
# File lib/minitest/unit.rb, line 1380
def self.test_methods # :nodoc:
methods = public_instance_methods(true).grep(/^test/).map { |m| m.to_s }
case self.test_order
when :parallel
max = methods.size
ParallelEach.new methods.sort.sort_by { rand max }
when :random then
max = methods.size
methods.sort.sort_by { rand max }
when :alpha, :sorted then
methods.sort
else
raise "Unknown test_order: #{self.test_order.inspect}"
end
end