Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 14, 2024
1 parent 80095db commit 35e2010
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 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
12 changes: 12 additions & 0 deletions 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']
require 'simplecov'

SimpleCov.start do
add_filter '/spec/'

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

ENV['RACK_ENV'] = 'test'

require 'pathname'
Expand Down

0 comments on commit 35e2010

Please sign in to comment.