Skip to content

Commit

Permalink
code-coverage: exclude spec and features dir from coverage analysis
Browse files Browse the repository at this point in the history
by default, the whole project is scanned. Code Climate excludes test directories
 from analysis, we do the same on local machine

[skip ci]
  • Loading branch information
o-orand committed Jan 18, 2019
1 parent a9003f9 commit 7d85b83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
require 'docker_registry2'

if ENV['COVERAGE']
puts 'Enabling coverage'
require 'simplecov'
SimpleCov.start
SimpleCov.start do
add_filter "/spec/"
add_filter "/features/"
end
end

# This file was generated by the `rspec --init` command. Conventionally, all
Expand Down

0 comments on commit 7d85b83

Please sign in to comment.