Skip to content
Draft
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 .github/workflows/nightly-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
max-parallel: 4
matrix:
# Run acceptance tests all supported combinations of Ruby and ActiveRecord.
ruby: ["3.1", "3.2", "3.3"]
ar: ["~> 6.1.0", "~> 7.0.0", "~> 7.1.0", "~> 7.2.0", "~> 8.0.0"]
# Exclude combinations that are not supported.
exclude:
Expand Down
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
Loading