Methods
Included Modules
- ActiveSupport::Testing::Assertions
- ActiveSupport::Testing::TimeHelpers
- ActiveSupport::Testing::FileFixtures
- ActiveRecord::TestFixtures
Constants
Assertion | = | Minitest::Assertion |
Class Public methods
test_order()
Returns the order in which test cases are run.
ActiveSupport::TestCase.test_order # => :random
Possible values are :random
, :parallel
, :alpha
, :sorted
. Defaults to :random
.
📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 39
def test_order
ActiveSupport.test_order ||= :random
end
🔎 See on GitHub
test_order=(new_order)
Sets the order in which test cases are run.
ActiveSupport::TestCase.test_order = :random # => :random
Valid values are:
-
:random
(to run tests in random order) -
:parallel
(to run tests in parallel) -
:sorted
(to run tests alphabetically by method name) -
:alpha
(equivalent to:sorted
)
📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 29
def test_order=(new_order)
ActiveSupport.test_order = new_order
end
🔎 See on GitHub