I follow this railscast when testing performance, but I immediately have a problem.
My application is rails 3.2.11, so according to railscast it should include performance testing, but I donβt have a folder called "test". When I run "rails generating the Performance_test homepage" nothing happens or is not created. So I created one of them manually (to exactly match the railscast source code), but when I run rake test: testmark, I get an error
Don't know how to build task 'test:benchmark'
If I add the "rails-perftest" pearl to my gemfile and run the package, then try creating Performance_test and nothing will happen, and when I run the rake: benchmark test, it gives another error
uninitialized constant Rails::SubTestTask
I have definitely included the following dependencies in my gem file:
gem 'ruby-prof', group: :test gem 'test-unit', group: :test
Can someone help me tell me what I'm doing wrong? Thanks!
ruby-on-rails-3 testing rake
jfdimark
source share