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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -