class method
self.run_from_rake
Ruby on Rails 8.0.4
Since v7.1.6Signature
self.run_from_rake(test_command, argv = [])
No documentation comment.
Parameters
-
test_commandreq -
argvopt = []
Source
# File railties/lib/rails/test_unit/runner.rb, line 49
def run_from_rake(test_command, argv = [])
# Ensure the tests run during the Rake Task action, not when the process exits
success = system("rails", test_command, *argv, *Shellwords.split(ENV["TESTOPTS"] || ""))
success || exit(false)
end
Defined in railties/lib/rails/test_unit/runner.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::TestUnit::Runner