Skip to content

Commit

Permalink
Adding support for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nateware committed Jun 22, 2021
1 parent 51ed207 commit 926365a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ rvm:
- 2.6.7
- 2.7.3
- 3.0.1

# For code coverage reports
script: bundle exec rake
3 changes: 3 additions & 0 deletions redis-objects.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "redis-namespace"
spec.add_development_dependency "activerecord"
spec.add_development_dependency "sqlite3"

# Code coverage
spec.add_development_dependency "codecov"
end
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
raise "\n===\nThese tests are in bacon, not rspec. Try: bacon #{ARGV * ' '}\n===\n"
end

# Code coverage reports
require 'simplecov'
SimpleCov.start

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

require "active_support/testing/time_helpers"
include ActiveSupport::Testing::TimeHelpers

Expand Down

0 comments on commit 926365a

Please sign in to comment.