aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/test/test_command.rb
blob: 65e16900bac2cbd13445bc61dc21266c1a78d4f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                         
                                      



                                                        




                                                      
                                 

                                                



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

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

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

        Minitest.run_via = :rails

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