Skip to content

Commit 853280d

Browse files
committed
Change coverage output format to json
1 parent a423b92 commit 853280d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/spec_helper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
if ENV["CI"]
22
require "simplecov"
3-
SimpleCov.start
3+
require "simplecov_json_formatter"
4+
SimpleCov.start do
5+
formatter SimpleCov::Formatter::MultiFormatter.new([
6+
SimpleCov::Formatter::JSONFormatter,
7+
SimpleCov::Formatter::HTMLFormatter,
8+
])
9+
add_filter "/spec/"
10+
end
411
end
512

613
require "qiita-markdown"

0 commit comments

Comments
 (0)