Skip to content

Commit

Permalink
chore: collect test code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Jan 10, 2025
1 parent c91cc5f commit 4dcd050
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
# Specify your gem's dependencies in activerecord-spanner.gemspec
gemspec

ar_version = ENV.fetch("AR_VERSION", "~> 7.1.0")
ar_version = ENV.fetch("AR_VERSION", "~> 7.2.0")
gem "activerecord", ar_version
gem "ostruct"
gem "minitest", "~> 5.25.0"
Expand All @@ -17,6 +17,7 @@ gem 'sqlite3'
install_if -> { ar_version.dup.to_s.sub("~>", "").strip < "7.1.0" && !ENV["SKIP_COMPOSITE_PK"] } do
gem "composite_primary_keys"
end
gem 'simplecov', require: false, group: :test

# Required for samples
gem "docker-api"
Expand Down
8 changes: 8 additions & 0 deletions acceptance/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

require 'simplecov'
SimpleCov.start do
add_filter '/test/'
add_filter '/acceptance/'
add_filter '/benchmarks/'
end

# Previous content of test helper now starts here
gem "minitest"
require "minitest/autorun"
require "minitest/focus"
Expand Down
7 changes: 7 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

require 'simplecov'
SimpleCov.start do
add_filter '/test/'
add_filter '/acceptance/'
add_filter '/benchmarks/'
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down

0 comments on commit 4dcd050

Please sign in to comment.