ruby on rails单元测试

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