Skip to content

Commit

Permalink
Exclude /spec/ from coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Jul 20, 2019
1 parent dcaf86a commit 56dc30a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
if ENV['COVERAGE'] == 'yes'
require 'coveralls'
Coveralls.wear!
require 'simplecov'

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
add_filter %r{^/spec/}
end
end

require 'rspec'
Expand Down

0 comments on commit 56dc30a

Please sign in to comment.