Skip to content

Commit

Permalink
- Push up test_order to Minitest::Runnable to fix minitest/hell. (koic)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 13731]
  • Loading branch information
zenspider committed Apr 1, 2023
1 parent 6045186 commit a9fa045
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions lib/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ def self.run_one_method klass, method_name, reporter
reporter.record Minitest.run_one_method(klass, method_name)
end

##
# Defines the order to run tests (:random by default). Override
# this or use a convenience method to change it for your tests.

def self.test_order
:random
end

def self.with_info_handler reporter, &block # :nodoc:
handler = lambda do
unless reporter.passed? then
Expand Down
8 changes: 0 additions & 8 deletions lib/minitest/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ def self.runnable_methods
end
end

##
# Defines the order to run tests (:random by default). Override
# this or use a convenience method to change it for your tests.

def self.test_order
:random
end

##
# Runs a single test with setup/teardown hooks.

Expand Down

0 comments on commit a9fa045

Please sign in to comment.