Skip to content

Commit 62898a5

Browse files
committed
Updates Simplecov usage
1 parent 8b8e2a7 commit 62898a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

elasticsearch-api/spec/spec_helper.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
if ENV['COVERAGE'] && ENV['CI'].nil?
17+
if ENV['COVERAGE']
1818
require 'simplecov'
19-
SimpleCov.start { add_filter %r{^/test|spec/} }
19+
SimpleCov.start do
20+
add_filter %r{^/test|spec/}
21+
add_filter 'utils/thor'
22+
end
2023
end
2124

2225
if defined?(JRUBY_VERSION)

0 commit comments

Comments
 (0)