Skip to content

Commit

Permalink
Added simplecov
Browse files Browse the repository at this point in the history
I've started to use simplecov on json-schema to find gaps in the test
coverage. This might be useful to other developers too, so I thought it
would be useful to share the simplecov config I'm using
  • Loading branch information
iainbeeston committed Sep 29, 2016
1 parent 9dc5d79 commit 121eb0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ pkg
/Gemfile.lock
.bundle
.idea
/coverage
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -3,3 +3,4 @@ source "https://rubygems.org"
gemspec

gem "json", ">= 1.7", :platforms => :mri_19
gem 'simplecov', :require => false
7 changes: 7 additions & 0 deletions test/support/test_helper.rb
@@ -1,3 +1,10 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start do
add_filter '/test/'
end
end

require 'minitest/autorun'
require 'webmock/minitest'

Expand Down

0 comments on commit 121eb0d

Please sign in to comment.