method

test_methods

v1_9_3_392 - Show latest stable - Class: MiniTest::Unit::TestCase
test_methods()
public

No documentation available.

# File lib/minitest/unit.rb, line 1017
      def self.test_methods # :nodoc:
        methods = public_instance_methods(true).grep(/^test/).map { |m| m.to_s }

        case self.test_order
        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