Skip to content

Commit 90b7c52

Browse files
committed
Configure simplecov to ignore spec folder
Reduce noise in code coverage output. All spec files are run 100% in the test suite. This lowers the overall code coverage number...sorry :D
1 parent 167f77c commit 90b7c52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/spec_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# SimpleCov is ..rcov for 1.9+
22
# https://github.com/colszowka/simplecov
33
require 'simplecov'
4-
SimpleCov.start
4+
SimpleCov.start do
5+
add_filter "/spec/"
6+
end
57

68
# This file is copied to spec/ when you run 'rails generate rspec:install'
79
ENV["RAILS_ENV"] ||= 'test'

0 commit comments

Comments
 (0)