From e21f79c813a9c4b2ddd90a7d3b135d1da91cf7d4 Mon Sep 17 00:00:00 2001 From: Sarah O'Grady Date: Wed, 20 Dec 2023 17:15:42 +0000 Subject: [PATCH] add simplecov gem to fc-vault-rails for quick test coverage stats --- .gitignore | 1 + Gemfile | 2 ++ spec/spec_helper.rb | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index f21a75c9..554f14d5 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,4 @@ spec/dummy/db/*.sqlite3-journal spec/dummy/log/*.log spec/dummy/tmp/ spec/dummy/.sass-cache +coverage diff --git a/Gemfile b/Gemfile index b4e2a20b..a3c54e45 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ source "https://rubygems.org" +gem 'simplecov', require: false, group: :test + gemspec diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 891d2196..d57dc8e3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,6 +2,9 @@ require "vault/rails" require "rspec" +require 'simplecov' + +SimpleCov.start module PathHelpers def project_root