mirror of
https://github.com/inspec/inspec
synced 2024-11-26 14:40:26 +00:00
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:
parent
9b13bcb953
commit
b1d5091670
3 changed files with 10 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -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'
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue