From 820d00005eed6fe0d897b41de4b19c9ac37c33a6 Mon Sep 17 00:00:00 2001 From: hank Date: Tue, 27 Jan 2015 00:55:02 -0800 Subject: [PATCH] code coverage --- README.md | 1 + spec/spec_helper.rb | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 02c7401..da1439a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/hstove/aqui.svg?branch=master)](https://travis-ci.org/hstove/aqui) [![Code Climate](https://codeclimate.com/github/hstove/aqui.png)](https://codeclimate.com/github/hstove/aqui) +[![Coverage Status](https://coveralls.io/repos/hstove/aqui/badge.svg)](https://coveralls.io/r/hstove/aqui) A gem for making sure some code is running. diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3c1ed48..dca39e2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,17 +1,18 @@ require 'simplecov' -# require 'coveralls' +SimpleCov.start +require 'coveralls' # require 'codeclimate-test-reporter' require 'bundler' Bundler.require(:default, :development) SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, - # Coveralls::SimpleCov::Formatter, + Coveralls::SimpleCov::Formatter, # CodeClimate::TestReporter::Formatter ] -# SimpleCov.start do -# add_filter "/spec/" -# end +SimpleCov.start do + add_filter "/spec/" +end # The `.rspec` file also contains a few flags that are not defaults but that # users commonly want.