class ActiveSupport::TestCase

def test_order

Defaults to +:random+.
Possible values are +:random+, +:parallel+, +:alpha+, +:sorted+.

ActiveSupport::TestCase.test_order # => :random

Returns the order in which test cases are run.
def test_order
  ActiveSupport.test_order ||= :random
end