class method self.run_from_rake

Ruby on Rails 8.0.4

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

self.run_from_rake(test_command, argv = [])

No documentation comment.

Parameters

test_command req
argv opt = []
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close