Skip to content

Commit

Permalink
Added simplecov gem support in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed Oct 28, 2013
1 parent 22902d8 commit 58a2e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions chef-handler-sns.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'minitest'
s.add_development_dependency 'mocha'
s.add_development_dependency 'coveralls'
s.add_development_dependency 'simplecov'
end
8 changes: 6 additions & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'coveralls'
Coveralls.wear!
require 'simplecov'
if ENV['TRAVIS']
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
end
SimpleCov.start

gem 'minitest' # ensures you're using the gem, and not the built in MT
require 'minitest/autorun'
Expand Down

0 comments on commit 58a2e88

Please sign in to comment.