From 23735b661521a9a2673a7bb103d7f31fcb9d0883 Mon Sep 17 00:00:00 2001 From: Rehan Mahmood Date: Thu, 29 Dec 2016 01:50:54 -0500 Subject: [PATCH] Add coveralls code coverage and reporting. --- Gemfile.local | 1 + README.md | 1 + spec/spec_helper_local.rb | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 Gemfile.local diff --git a/Gemfile.local b/Gemfile.local new file mode 100644 index 0000000..69bbbf1 --- /dev/null +++ b/Gemfile.local @@ -0,0 +1 @@ +gem 'coveralls', require: false diff --git a/README.md b/README.md index 96fd33d..9ea85e7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # rehan-wget [![Build Status](https://travis-ci.org/rehanone/puppet-wget.svg?branch=master)](https://travis-ci.org/rehanone/puppet-wget) +[![Coverage Status](https://coveralls.io/repos/github/rehanone/puppet-wget/badge.svg?branch=master)](https://coveralls.io/github/rehanone/puppet-wget?branch=master) #### Table of Contents 1. [Overview](#overview) diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb index 9ff7f23..9b608e2 100644 --- a/spec/spec_helper_local.rb +++ b/spec/spec_helper_local.rb @@ -1,2 +1,5 @@ require 'rspec-puppet-facts' include RspecPuppetFacts + +require 'coveralls' +Coveralls.wear!