I am using Rails 3.0.10 . I am using mac.
I tried this
time rake spec/models/user_spec.rb
Then I tried
time (rake spec/models/user_spec.rb)
This one took longer but I did not see my test output.
What is the right way to figure out how long my rake is taking.
您应该能够使用'time'为任何命令计时,并使用ruby解释器直接运行单个测试:
time ruby spec/models/user_spec.rb
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.