diff --git a/.gitignore b/.gitignore index b32c02c..597e4b5 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ # Ignore ~ files *~ + +# Ignore simplecov coverage report +/coverage diff --git a/Gemfile b/Gemfile index 2da93a8..c244391 100644 --- a/Gemfile +++ b/Gemfile @@ -50,6 +50,9 @@ group :development, :test do # Rubocul for linting gem 'rubocul', '~> 4.0' + + # simplecov for test coverage + gem 'simplecov', '~> 0.22', require: false end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 2ade0b1..d185732 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -117,6 +117,7 @@ GEM responders warden (~> 1.2.3) diff-lcs (1.5.0) + docile (1.4.1) drb (2.2.0) ruby2_keywords erubi (1.12.0) @@ -318,6 +319,12 @@ GEM sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) spring (4.1.3) sprockets (3.7.2) concurrent-ruby (~> 1.0) @@ -379,6 +386,7 @@ DEPENDENCIES rubocul (~> 4.0) rubyzip sass-rails (~> 5.0) + simplecov (~> 0.22) spring sqlite3 (~> 1.4) turbolinks diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ce33d66..701b601 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,9 @@ +require 'simplecov' +SimpleCov.start 'rails' do + # Ignore the following because we're not using these rails features right now: + add_filter 'app/mailers' +end + # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause