How to run a single test from a rails test suite?

后端 未结 12 1721
故里飘歌
故里飘歌 2020-12-07 09:09

How can I run a single test from a rails test suite?

rake test ANYTHING seems to not help.

12条回答
  •  粉色の甜心
    2020-12-07 09:57

    If you want to run a single test, you can just run them as a regular Ruby script

    ruby actionmailer/test/mail_layout_test.rb
    

    You can also run a whole suite (eg. ActiveRecord or ActionMailer) by cd-ing into the directory and running rake test inside there.

提交回复
热议问题