How to integrate simplecov with a Ruby gem using RSpec (no rails)? -


when adding simplecov rails project using rspec, i'd place @ top of rails_helper.rb

require 'simplecov'  simplecov.start 'rails'   add_filter '/spec/'         add_group 'controllers', 'app/controllers'   add_group 'models', 'app/models' end 

what expected location , code needed have simplecov document code coverage of vanilla ruby gem?

as engineersmnky mentioned, code pretty same regardless of framework.

include simplecov start @ top of spec helper before require files.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -