Skip to content

Commit ae099c8

Browse files
committed
Merge pull request #3 from rspec/coveralls_tweaks
Coveralls setup tweaks
2 parents 3d5c855 + 863adb7 commit ae099c8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

spec/spec_helper.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
require 'rspec/autotest'
44
require 'aruba/api'
55

6-
require 'coveralls'
7-
Coveralls.wear!
6+
unless ENV['NO_COVERALLS']
7+
require 'simplecov' if RUBY_VERSION.to_f > 1.8
8+
require 'coveralls'
9+
Coveralls.wear! do
10+
add_filter '/bundle/'
11+
add_filter '/spec/'
12+
add_filter '/tmp/'
13+
end
14+
end
815

916
if RUBY_PLATFORM == 'java'
1017
# Works around https://jira.codehaus.org/browse/JRUBY-5678

0 commit comments

Comments
 (0)