Skip to content

Commit 3e4a6af

Browse files
committed
Add CodeCov.
1 parent eb353ee commit 3e4a6af

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Diff for: Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ gem "rspec" , '~> 2.1'
44
gem "rake" , '~> 0.8', '>= 0.8.7'
55
gem "authorizenet" , '~> 1.9.2'
66

7+
group :test do
8+
gem 'simplecov', require: false # Test coverage. Go to /coverage/ after running tests
9+
gem 'codecov', require: false # Test coverage website. Go to https://codecov.io
10+
end

Diff for: README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Ruby Sample Code for the Authorize.Net SDK
2-
[![Travis CI Status](https://travis-ci.org/AuthorizeNet/sample-code-ruby.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sample-code-ruby)
2+
[![Travis CI ][travis_badge]][travis]
3+
[![Coverage ][codecov_badge]][codecov]
34

45
This repository contains working code samples which demonstrate Ruby integration with the [Authorize.Net Ruby SDK](https://www.github.com/AuthorizeNet/sdk-ruby).
56

@@ -30,3 +31,8 @@ e.g.
3031
```
3132
$ ruby PaymentTransactions/charge-credit-card.rb
3233
```
34+
35+
[travis_badge]: https://travis-ci.org/AuthorizeNet/sample-code-ruby.svg?branch=master
36+
[travis]: https://travis-ci.org/AuthorizeNet/sample-code-ruby
37+
[codecov_badge]: https://codecov.io/gh/AuthorizeNet/sample-code-ruby/branch/master/graph/badge.svg
38+
[codecov]: https://codecov.io/gh/AuthorizeNet/sample-code-ruby

Diff for: spec/spec_helper.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
#require 'coveralls'
2-
#Coveralls.wear!
1+
require 'simplecov'
2+
SimpleCov.start
3+
4+
require 'codecov'
5+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
6+
37
require "authorizenet"
48
require "yaml"
59

0 commit comments

Comments
 (0)