aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/test/test_command.rb
blob: 629fb5b42598f11ea3beb6d2025ccb42fa864904 (plain) (tree)
1
2
3
4
5
6
7




                                         

                                      





                                                      
                                 

                                                



         
require "rails/command"
require "rails/test_unit/minitest_plugin"

module Rails
  module Command
    class TestCommand < Base # :nodoc:
      def help
        perform # Hand over help printing to minitest.
      end

      def perform(*)
        $LOAD_PATH << Rails::Command.root.join("test")

        Minitest.run_via = :rails

        require "active_support/testing/autorun"
      end
    end
  end
end