Skip to content

Commit 26b0729

Browse files
authored
Add codecov integration. (#1)
1 parent ce5ec98 commit 26b0729

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Ruby gem for validating [JSON API](http://jsonapi.org) documents.
55

66
[![Gem Version](https://badge.fury.io/rb/jsonapi-parser.svg)](https://badge.fury.io/rb/jsonapi-parser)
77
[![Build Status](https://secure.travis-ci.org/jsonapi-rb/parser.svg?branch=master)](http://travis-ci.org/jsonapi-rb/parser?branch=master)
8+
[![codecov](https://codecov.io/gh/jsonapi-rb/parser/branch/master/graph/badge.svg)](https://codecov.io/gh/jsonapi-rb/parser)
89

910
## Installation
1011
```ruby

jsonapi-parser.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ Gem::Specification.new do |spec|
1717

1818
spec.add_development_dependency 'rake', '~> 11.3'
1919
spec.add_development_dependency 'rspec', '~> 3.5'
20+
spec.add_development_dependency 'codecov', '~> 0.1'
2021
end

spec/response_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'jsonapi/parser'
1+
require 'spec_helper'
22

33
describe JSONAPI::Parser, '.parse_response!' do
44
it 'succeeds on nil data' do

spec/spec_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'simplecov'
2+
SimpleCov.start
3+
4+
require 'codecov'
5+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
6+
7+
require 'jsonapi/parser'

0 commit comments

Comments
 (0)