Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ script:
- rake spec
before_install:
- gem update bundler
- gem install codecov

1 change: 1 addition & 0 deletions sendgrid-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'pry'
spec.add_development_dependency 'faker'
spec.add_development_dependency 'minitest', '~> 5.9'
spec.add_development_dependency 'codecov', '~> 0'
end
7 changes: 7 additions & 0 deletions test/sendgrid/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# if ENV['CI'] == 'true'
# require 'simplecov'
# SimpleCov.start

# require 'codecov'
# SimpleCov.formatter = SimpleCov::Formatter::Codecov
# end
8 changes: 8 additions & 0 deletions test/sendgrid/test_sendgrid-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
require 'minitest/autorun'
require 'minitest/unit'

if ENV['CI'] == 'true'
require 'simplecov'
SimpleCov.start

require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

class TestAPI < MiniTest::Test

unless File.exist?('/usr/local/bin/prism') || File.exist?(File.join(Dir.pwd, 'prism/bin/prism'))
Expand Down