Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from tommyschaefer/fix-simplecov-not-working-…
Browse files Browse the repository at this point in the history
…properly

Simplecov needs to be included *before* minitest is required.
Insti authored Jan 2, 2017

Verified

This commit was signed with the committer’s verified signature. The key has expired.
nikolaybotev Nikolay Botev
2 parents edc5cc9 + 66f5942 commit d88dc7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)

require 'minitest/autorun'
require 'minitest/pride'

unless ENV['CI']
require 'simplecov'

@@ -15,5 +12,8 @@
end
end

require 'minitest/autorun'
require 'minitest/pride'

# So we can be sure we have coverage on the whole lib directory:
Dir.glob('lib/*.rb').each { |file| require file.gsub(%r{(^lib\/|\.rb$)}, '') }

0 comments on commit d88dc7a

Please sign in to comment.