Skip to content

Commit c1c0b17

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

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spec/spec_helper.rb

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

33
require 'simplecov'
4-
SimpleCov.start
4+
require 'simplecov_json_formatter'
5+
6+
SimpleCov.start do
7+
SimpleCov.formatters = [
8+
SimpleCov::Formatter::JSONFormatter,
9+
SimpleCov::Formatter::HTMLFormatter
10+
]
11+
12+
add_filter '/spec/'
13+
end
514

615
require 'ruboty/github'
716
require 'webmock/rspec'

0 commit comments

Comments
 (0)