Skip to content

Commit be206dc

Browse files
committed
Change coverage output format to json
1 parent ffcf0c2 commit be206dc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spec/spec_helper.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
# frozen_string_literal: true
22

33
require 'simplecov'
4-
SimpleCov.start
4+
require 'simplecov_json_formatter'
5+
6+
SimpleCov.start do
7+
formatter SimpleCov::Formatter::MultiFormatter.new([
8+
SimpleCov::Formatter::JSONFormatter,
9+
SimpleCov::Formatter::HTMLFormatter
10+
])
11+
add_filter '/spec/'
12+
end
513

614
require 'ruboty/github'
715
require 'webmock/rspec'

0 commit comments

Comments
 (0)