Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Exclude dashboard manifest and very small files from coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
archonic committed Apr 5, 2018
1 parent d3b6bff commit 715ce24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -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__)
Expand Down

0 comments on commit 715ce24

Please sign in to comment.