Skip to content

Instantly share code, notes, and snippets.

Created May 23, 2013 12:32
Show Gist options
  • Save anonymous/5635727 to your computer and use it in GitHub Desktop.
Save anonymous/5635727 to your computer and use it in GitHub Desktop.
Thanks for that, very helpful. As it happens we have two stagings instances.
http://harrowcn-staging-eu.herokuapp.com
http://harrowcn-staging.herokuapp.com
I just tried to run our cucumber and rspec tests on the latter, and got the following
saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run rake cucumber
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N
Running rake cucumber attached to terminal... up, run.5774
Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin
saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run rake spec
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N
Running rake spec attached to terminal... up, run.6431
we have cucumber in our GemFile,
https://github.com/tansaku/LocalSupport/blob/master/Gemfile
I tried again with bundle exec:
saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run bundle exec rake cucumber
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N
Running bundle exec rake cucumber attached to terminal... up, run.9378
Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin
saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run bundle exec rake spec
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N
Running bundle exec rake spec attached to terminal... up, run.5147
It looks like the specs might have run although I am not clear where I should look for the output. I tried heroku logs, but saw nothing related to tests.
Is there a dev article on actually running cucumber and rspec on heroku? It seems like a lot of people would want to do this.
http://stackoverflow.com/questions/3688884/run-cucumber-tests-on-heroku
http://stackoverflow.com/questions/5035828/running-rails-unit-tests-on-heroku
http://stackoverflow.com/questions/6137747/how-do-you-run-rspec-and-cucumber-on-heroku
I can see lots of different suggestions scattered all over those stack overflow posts - would be nice to hear from Heroku about the recommended procedure.
Many thanks in advance
p.s. I really like the heroku-sql-console but I keep getting this message "the plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N)" can I get rid of that somehow?
p.p.s. is there some way to make this support request public so that my entire open source team can see it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment