Skip to content

Commit

Permalink
Add code coverage using Scrutinizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
varyonic committed Jun 15, 2018
1 parent eb353ee commit c2faf6b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ gem "rspec" , '~> 2.1'
gem "rake" , '~> 0.8', '>= 0.8.7'
gem "authorizenet" , '~> 1.9.2'

group :test do
gem 'simplecov', require: false # Test coverage. Go to /coverage/ after running tests
gem 'scrutinizer-ocular', require: false # Test coverage website. Go to https://scrutinizer.com
end
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ruby Sample Code for the Authorize.Net SDK
[![Travis CI Status](https://travis-ci.org/AuthorizeNet/sample-code-ruby.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sample-code-ruby)
[![Travis CI ][travis_badge]][travis]
[![Coverage ][coverage_badge]][coverage]

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

Expand Down Expand Up @@ -30,3 +31,8 @@ e.g.
```
$ ruby PaymentTransactions/charge-credit-card.rb
```

[travis_badge]: https://travis-ci.org/AuthorizeNet/sample-code-ruby.svg?branch=master
[travis]: https://travis-ci.org/AuthorizeNet/sample-code-ruby
[coverage_badge]: https://scrutinizer-ci.com/g/AuthorizeNet/sample-code-ruby/badges/coverage.png?b=master
[coverage]: https://scrutinizer-ci.com/g/AuthorizeNet/sample-code-ruby/?branch=master
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#require 'coveralls'
#Coveralls.wear!
require 'simplecov'
SimpleCov.start

require 'scrutinizer/ocular'
Scrutinizer::Ocular.watch!

require "authorizenet"
require "yaml"

Expand Down

0 comments on commit c2faf6b

Please sign in to comment.