1.運行單個用例
cd path/to/project
./bin/rake test test/controllers/helper_controller_test.rb test_something_singletest
2.運行單個文件
cd path/to/project
./bin/rake test test/controllers/helper_controller_test.rb項目
3.運行這個文件夾下的子文件夾
cd path/to/project
./bin/rake test test/controllers文件
4.運行整個項目
cd path/to/project
./bin/rake test
或者
./bin/rake test test
最後一個test是文件夾名稱,能夠省略co