Skip to content

Commit ff32ee9

Browse files
committed
filter specs from coverage reports
1 parent 7c1bdcd commit ff32ee9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ pkg
77
vendor
88
coverage
99
!/lib/redmon/public/vendor
10-
Gemfile.lock
10+
Gemfile.lock
11+
.coveralls.yml

spec/spec_helper.rb

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
require 'simplecov'
2+
require 'coveralls'
3+
14
if ENV["TRAVIS"]
2-
require 'coveralls'
3-
Coveralls.wear!
4-
else
5-
require 'simplecov'
6-
SimpleCov.start
5+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
6+
end
7+
8+
SimpleCov.start do
9+
add_filter '/spec/'
710
end
811

912
require 'redmon'

0 commit comments

Comments
 (0)