File tree Expand file tree Collapse file tree 4 files changed +20
-14
lines changed Expand file tree Collapse file tree 4 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,3 @@ source "https://rubygems.org"
44
55# Specify your gem's dependencies in rspec-json_matchers.gemspec
66gemspec
7-
8- gem "codecov" , require : false , group : :test
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ You can read [the story of this project](https://github.com/PikachuEXE/rspec-jso
1616[ ![ Gem Version] ( http://img.shields.io/gem/v/rspec-json_matchers.svg?style=flat-square )] ( http://badge.fury.io/rb/rspec-json_matchers )
1717[ ![ License] ( https://img.shields.io/github/license/PikachuEXE/rspec-json_matchers.svg?style=flat-square )] ( http://badge.fury.io/rb/rspec-json_matchers )
1818
19+ [ ![ Coverage Status] ( http://img.shields.io/coveralls/PikachuEXE/rspec-json_matchers.svg?style=flat-square )] ( https://coveralls.io/r/PikachuEXE/rspec-json_matchers )
1920[ ![ Code Climate] ( https://img.shields.io/codeclimate/maintainability/PikachuEXE/rspec-json_matchers.svg?style=flat-square )] ( https://codeclimate.com/github/PikachuEXE/rspec-json_matchers )
20- [ ![ Coverage Status] ( https://img.shields.io/codecov/c/github/PikachuEXE/rspec-json_matchers.svg?style=flat-square )] ( https://codecov.io/gh/PikachuEXE/rspec-json_matchers )
2121[ ![ Inch CI] ( https://inch-ci.org/github/PikachuEXE/rspec-json_matchers.svg?branch=master )] ( https://inch-ci.org/github/PikachuEXE/rspec-json_matchers )
2222
2323> The above badges are generated by https://shields.io/
Original file line number Diff line number Diff line change @@ -31,13 +31,11 @@ Gem::Specification.new do |spec|
3131 spec . add_dependency "rspec" , "~> 3.0"
3232
3333 spec . add_development_dependency "rake" , ">= 10.0" , "<= 14.0"
34-
3534 spec . add_development_dependency "appraisal" , "~> 2.0"
36-
3735 spec . add_development_dependency "rspec-its" , "~> 1.0"
38-
36+ spec . add_development_dependency "simplecov" , ">= 0.21"
37+ spec . add_development_dependency "simplecov-lcov" , ">= 0.8"
3938 spec . add_development_dependency "gem-release" , "~> 2.0"
40-
4139 spec . add_development_dependency "inch" , "~> 0.6"
4240
4341 spec . required_ruby_version = ">= 2.3.0"
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- $LOAD_PATH. unshift ( File . expand_path ( '../lib' , __dir__ ) )
4- require "rspec-json_matchers"
5-
6- if ENV [ "TRAVIS" ]
3+ if ENV [ "COVERALLS" ]
74 require "simplecov"
8- SimpleCov . start
5+ require "simplecov-lcov"
6+
7+ SimpleCov ::Formatter ::LcovFormatter . config do |c |
8+ c . report_with_single_file = true
9+ c . single_report_path = "coverage/lcov.info"
10+ end
911
10- require "codecov"
11- SimpleCov . formatter = SimpleCov ::Formatter ::Codecov
12+ SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new (
13+ [ SimpleCov ::Formatter ::HTMLFormatter , SimpleCov ::Formatter ::LcovFormatter ]
14+ )
15+
16+ SimpleCov . start do
17+ add_filter "spec/"
18+ end
1219end
1320
21+ $LOAD_PATH. unshift ( File . expand_path ( '../lib' , __dir__ ) )
22+ require "rspec-json_matchers"
23+
1424RSpec . configure do |config |
1525 config . include RSpec ::JsonMatchers ::Matchers
1626end
You can’t perform that action at this time.
0 commit comments