From 715ce24228fa88cf57a097a311c950bbd328a395 Mon Sep 17 00:00:00 2001 From: Joshua Flark Date: Thu, 5 Apr 2018 15:42:22 -0700 Subject: [PATCH] Exclude dashboard manifest and very small files from coverage report --- README.md | 2 +- spec/rails_helper.rb | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb2e31c..df85df7 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The gemset has been chosen to be modern, performant, and take care of a number o * Persistent banner with link to billing page for accounts that are past due. * Opinionated search integration using Elasticsearch via Searchkick. Gem is in place but integration is up to you. * Feature control using the flipper gem. Demonstrated with public_registration. -* 87% RSpec test coverage. +* 89% RSpec test coverage. ## Roadmap * In-browser image cropping using jcrop or the likes. diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 427be7b..c6698e5 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,5 +1,10 @@ require 'simplecov' -SimpleCov.start 'rails' +SimpleCov.start 'rails' do + add_filter 'app/dashboards/dashboard_manifest.rb' + add_filter do |source_file| + source_file.lines.count < 5 + end +end ENV['RAILS_ENV'] = 'test' require 'spec_helper' require File.expand_path('../../config/environment', __FILE__)