Sinatra Basics : Test Coverage for Sinatra Applications
To learn how to setup simplecov to generate test coverage report.
In your Gemfilefile, add the following to the test group:
spec/spec_helper.rb (before anything else)
require 'simplecov' SimpleCov.start
To view the test coverage report.
In this article, you learned how to use simplecov gem to generate test coverage reports for a Sinatra application.
Ace the Technical Interview
- Easily find the gaps in your knowledge
- Get customized lessons based on where you are
- Take consistent action everyday
- Builtin accountability to keep you on track
- You will solve bigger problems over time
- Get the job of your dreams
Take the 30 Day Coding Skills Challenge
Gain confidence to attend the interview