Skip to content

Commit

Permalink
Add simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 12, 2024
1 parent 3498bd1 commit ae183e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ gem 'rubocop-rails'
gem 'rubocop-rake'
gem 'rubocop-rspec'
gem 'rubocop-rspec_rails'
gem 'simplecov'
14 changes: 11 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'simplecov'

# Start Simplecov
SimpleCov.start do
add_filter 'spec/'
end

require 'combustion'
require 'voight_kampff'
require 'voight_kampff/rails'

Combustion.path = 'spec/dummy'
Combustion.initialize! :action_controller

require 'rspec/rails'
Dir['./spec/support/**/*.rb'].each { |f| require f }

# Configure RSpec
RSpec.configure do |config|
config.color = true
config.fail_fast = false
Expand All @@ -28,3 +33,6 @@
# see: https://relishapp.com/rspec/rspec-core/v/3-8/docs/configuration/zero-monkey-patching-mode
config.disable_monkey_patching!
end

# Load test helpers
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

0 comments on commit ae183e8

Please sign in to comment.