Table of Contents |
---|
Setup RubyMine and Comment Service
...
Code Block |
---|
SEARCH_SERVER=http://localhost:9200
MONGOHQ_URL=mongodb://localhost:27017/cs_comments_service_test |
Running RSpec Tests locally using command line debugger
Warning |
---|
These are old instructions that haven't been tested with recent changes. Please edit/remove this comment or section as appropriate if you try this out. |
- vagrant ssh
- sudo su forum
- rspec command will run all tests
- To run just a specific test, add ":focus => true" where the test is declared. Example:
describe "app" do
describe "notifications", :focus => true do
- Add a "debugger" command in the code where you want to stop in the debugger
- Now specify -d to the rspec command (rspec -d)
- If that fails with a message that starts with "cannot load such file -- ruby-debug", do this:
- edit Gemfile and uncomment the line with "debugger"
- bundle install
- Run rspec -d again
Running RSpec Tests on Devstack (not currently supported)
...