-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't know how to build task 'test:benchmark' #26
Comments
there is currently a PR in review that fixes this. #25 |
@TheAustinSeven thanks! however your solution seem doesn't work. |
That is strange. It worked perfectly fine when I tested it. If you are talking about the CI failure, that is not due to the code I wrote, but an error with the CI itself. Could you clarify how it doesn't work? |
@kimquy can you please post the complete backtrace of your error? |
$ bundle exec rake test:benchmark --trace
rake aborted!
Don't know how to build task 'test:benchmark'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task_manager.rb:62:in `[]'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:149:in `invoke_task'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/Users/dev/Desktop/squar/squar-server/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>' |
Did you add |
My Gemfile. Couple of people suggest include the following ....
gem 'rake', '10.4.2'
...
group :test do
gem 'factory_girl_rails'
gem 'shoulda-matchers', require: false
gem 'capybara', require: false
gem 'simplecov', '~> 0.9', require: false
gem 'test_after_commit'
gem 'rails-perftest'
gem 'ruby-prof'
end |
You will have to move |
@TheAustinSeven worked! Not even sure why I didn't try to put it outside of |
rake test:benchmark
is not available for Rails >= 4.1.7. Not sure anyone got chance to fix it yet?The text was updated successfully, but these errors were encountered: