Skip to content

Commit

Permalink
Merge pull request #273 from ifad/chore/fix-coverage
Browse files Browse the repository at this point in the history
Fix code coverage
  • Loading branch information
tagliala authored Sep 14, 2024
2 parents 80095db + eb85739 commit 6d7cde3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.byebug_history
coverage
public
doc
log/*
!/log/.keep
tmp/*
public
spec/examples.txt
spec/output.log
.byebug_history
storage/
tmp/*

# Docker
docker/colore/variables.env
13 changes: 12 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# frozen_string_literals: true

if ENV['COVERAGE'] || ENV['CI']
require 'simplecov'

SimpleCov.start do
add_filter '/spec/'

track_files 'lib/**/*.rb'
end
end

ENV['RACK_ENV'] = 'test'

require 'pathname'
Expand All @@ -10,7 +22,6 @@
require 'timecop'

Sidekiq.logger = nil
SimpleCov.start

SPEC_BASE = Pathname.new(__FILE__).realpath.parent

Expand Down

0 comments on commit 6d7cde3

Please sign in to comment.