Skip to content

Commit 5751bde

Browse files
committed
Use simplecov-json gem instead of simplecov_json_formatter
1 parent 3c3b1f2 commit 5751bde

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.simplecov

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
require 'simplecov'
2+
require 'simplecov-json'
13
SimpleCov.start 'rails' do
4+
# any custom configs like groups and filters can be here at a central place
25
enable_coverage :branch
6+
formatter SimpleCov::Formatter::MultiFormatter[
7+
SimpleCov::Formatter::JSONFormatter,
8+
SimpleCov::Formatter::HTMLFormatter
9+
]
310
add_filter 'phoenix-tests'
411
end

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ group :test do
202202
gem "rails-controller-testing"
203203
# Show code coverage.
204204
gem 'simplecov'
205+
gem 'simplecov-json'
205206
# Mock HTTP requests and ensure they are not called during tests.
206207
gem "webmock", "~> 3.24"
207208
# Interface capybara to chrome headless

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ GEM
642642
simplecov-html (~> 0.11)
643643
simplecov_json_formatter (~> 0.1)
644644
simplecov-html (0.12.3)
645+
simplecov-json (0.2.3)
646+
json
647+
simplecov
645648
simplecov_json_formatter (0.1.4)
646649
sinatra (4.0.0)
647650
mustermann (~> 3.0)
@@ -812,6 +815,7 @@ DEPENDENCIES
812815
shoulda-matchers (~> 6.4)
813816
simple_form
814817
simplecov
818+
simplecov-json
815819
solid_cache (~> 1.0)
816820
sprockets (~> 4.2.1)
817821
stackprof

0 commit comments

Comments
 (0)