Skip to content

Simplecov Code Coverage

nrevko edited this page Apr 12, 2012 · 1 revision

Simplecov code coverage was set up in spec_helper.rb using the guide from https://github.com/colszowka/simplecov.

To see the % coverage simply run tests from the project directory:

$ rspec

To see the breakdown of the test coverage, check your local file in coverage/index.html (the output of your tests will indicate the exact location; e.g. Coverage report generated for RSpec to /Users/nina/railsApps/workshop/bridge_troll/coverage. 48 / 171 LOC (28.07%) covered.)