Search code examples
ruby-on-railscommand-lineminitest

How to run only controller tests in MiniTest?


What is the rake command for running only controller tests in minitest? rake test:controller doesn't do the trick.


Solution

  • Try making it plural. This is the typical command:

    rake test:controllers
    

    http://guides.rubyonrails.org/testing.html#rake-tasks-for-running-your-tests

    Section 6 covers the rake commands for testing.