method

rake_run

rails latest stable - Class: Rails::TestUnit::Runner

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

rake_run(argv = [])
public

No documentation available.

# File railties/lib/rails/test_unit/runner.rb, line 33
        def rake_run(argv = [])
          # Ensure the tests run during the Rake Task action, not when the process exits
          success = system("rails", "test", *argv, *Shellwords.split(ENV["TESTOPTS"] || ""))
          success || exit(false)
        end