RSpec > Is there a way to run all tests with one command?

后端 未结 5 1470
萌比男神i
萌比男神i 2021-02-02 07:44

Is there a command that does this? I\'ve searched but can not find anything

5条回答
  •  天命终不由人
    2021-02-02 08:24

    if you are using rspec-rails then you can run using rake spec

    if you're testing models, use rake spec:models (or rake spec:routing or rake spec:controllers)

    if just testing one model, use rake SPEC=app/models/modelname.rb

提交回复
热议问题