Skip to content

How to: 3. Run test suite

Juan Carlos edited this page Aug 14, 2014 · 2 revisions

Run test suite

Prepare your Database for test

$ rake db:migrate RAILS_ENV=test

Using Rspec and Rspec Capybara

$ bundle exec rspec spec/

SimpleCov

After running your test, if you want to verify your coverage:

$ open coverage/index.html

If you are using Ubuntu, you can verify the coverage with:

$ xdg-open coverage/index.html

Using Nyan Cat

You can either specify the formatting when using the rspec command:

$ rspec --format NyanCatFormatter

Check this page for more information.