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
Post a Comment