Add Coveralls.io support to InSpec

Tie coveralls into simplecov formatters
Add coveralls badge to README

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-04-26 13:05:53 -07:00
parent 9b13bcb953
commit b1d5091670
3 changed files with 10 additions and 2 deletions

View file

@ -13,6 +13,7 @@ group :omnibus do
end end
group :test do group :test do
gem 'coveralls', require: false
gem 'minitest', '~> 5.5' gem 'minitest', '~> 5.5'
gem 'rake', '>= 10' gem 'rake', '>= 10'
gem 'rubocop', '= 0.49.1' gem 'rubocop', '= 0.49.1'

View file

@ -3,6 +3,7 @@
[![Slack](https://community-slack.chef.io/badge.svg)](https://community-slack.chef.io/) [![Slack](https://community-slack.chef.io/badge.svg)](https://community-slack.chef.io/)
[![Build Status Master](https://travis-ci.org/inspec/inspec.svg?branch=master)](https://travis-ci.org/inspec/inspec) [![Build Status Master](https://travis-ci.org/inspec/inspec.svg?branch=master)](https://travis-ci.org/inspec/inspec)
[![Build Status Master](https://ci.appveyor.com/api/projects/status/github/inspec/inspec?branch=master&svg=true&passingText=master%20-%20Ok&pendingText=master%20-%20Pending&failingText=master%20-%20Failing)](https://ci.appveyor.com/project/Chef/inspec/branch/master) [![Build Status Master](https://ci.appveyor.com/api/projects/status/github/inspec/inspec?branch=master&svg=true&passingText=master%20-%20Ok&pendingText=master%20-%20Pending&failingText=master%20-%20Failing)](https://ci.appveyor.com/project/Chef/inspec/branch/master)
[![Coverage Status](https://coveralls.io/repos/github/inspec/inspec/badge.svg?branch=master)](https://coveralls.io/github/inspec/inspec?branch=master)
InSpec is an open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements. InSpec is an open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements.

View file

@ -1,7 +1,13 @@
# encoding: utf-8 # encoding: utf-8
# author: Dominik Richter
# author: Christoph Hartmann
require 'simplecov' require 'simplecov'
require 'coveralls'
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start do SimpleCov.start do
add_filter '/test/' add_filter '/test/'
add_group 'Resources', 'lib/resources' add_group 'Resources', 'lib/resources'