Skip to content
Merged
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
16 changes: 10 additions & 6 deletions google-cloud-bigquery/acceptance/bigquery_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
require "google/cloud/bigquery"
require "google/cloud/storage"

# Generate JUnit format test reports
if ENV["GCLOUD_TEST_GENERATE_XML_REPORT"]
require "minitest/reporters"
Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new, Minitest::Reporters::JUnitReporter.new]
end

# Create shared bigquery object so we don't create new for each test
$bigquery = Google::Cloud::Bigquery.new retries: 10

Expand Down
10 changes: 10 additions & 0 deletions google-cloud-bigquery/samples/snippets/acceptance/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.


if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "securerandom"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-bigquery/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/mock"
Expand Down
16 changes: 10 additions & 6 deletions google-cloud-bigtable/acceptance/bigtable_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,23 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/spec"
require "minitest/focus"
require "minitest/rg"
require "google/cloud/bigtable"
require "securerandom"

# Generate JUnit format test reports
if ENV["GCLOUD_TEST_GENERATE_XML_REPORT"]
require "minitest/reporters"
Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new, Minitest::Reporters::JUnitReporter.new]
end

# Create shared bigtable object so we don't create new for each test
$bigtable = Google::Cloud.new.bigtable

Expand Down
10 changes: 10 additions & 0 deletions google-cloud-bigtable/samples/acceptance/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.


if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/hooks/default"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-bigtable/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@

require "simplecov"


if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/spec"
require "minitest/autorun"
Expand Down
1 change: 1 addition & 0 deletions google-cloud-core/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gem "minitest", "~> 5.14"
gem "minitest-autotest", "~> 1.0"
gem "minitest-focus", "~> 1.1"
gem "minitest-rg", "~> 5.2"
gem "minitest-reporters", "~> 1.5.0", require: false
gem "rake"
gem "redcarpet", "~> 3.0"
gem "simplecov", "~> 0.9"
Expand Down
11 changes: 11 additions & 0 deletions google-cloud-core/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ GEM
specs:
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
ansi (1.6.0)
ast (2.4.3)
autotest-suffix (1.1.0)
base64 (0.3.0)
builder (3.3.0)
docile (1.4.1)
drb (2.2.3)
faraday (2.14.3)
Expand Down Expand Up @@ -52,6 +54,11 @@ GEM
path_expander (~> 2.0)
minitest-focus (1.4.1)
minitest (> 5.0)
minitest-reporters (1.5.0)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
minitest-rg (5.4.0)
minitest (>= 5.0, < 7)
minitest-server (1.0.10)
Expand Down Expand Up @@ -121,6 +128,7 @@ DEPENDENCIES
minitest (~> 5.14)
minitest-autotest (~> 1.0)
minitest-focus (~> 1.1)
minitest-reporters (~> 1.5.0)
minitest-rg (~> 5.2)
ostruct (~> 0.6.3)
rake
Expand All @@ -131,9 +139,11 @@ DEPENDENCIES

CHECKSUMS
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
ansi (1.6.0)
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
autotest-suffix (1.1.0) sha256=9bb29331b7b66a9659b01ef10839bd61fc1a6e95477c8ea710bd01e10c380977
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
builder (3.3.0)
bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
Expand All @@ -153,6 +163,7 @@ CHECKSUMS
minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5
minitest-autotest (1.2.0) sha256=60d031cba705215450662b0060f03f96507682b346a19c27f6756751ad92d2b4
minitest-focus (1.4.1) sha256=394517cbe2dcb2d992d8ffc41a3b2b6315777a4daa69239de4fefe7110dd810e
minitest-reporters (1.5.0)
minitest-rg (5.4.0) sha256=54d42bb8ce876381245be5866f3c1dd704ef79c06ba5c9ff280c0aa28c56effb
minitest-server (1.0.10) sha256=275439bf3ffc433fcbe161733248f1d9749ebf122892cf010bf864aaa95cef75
net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-core/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
1 change: 1 addition & 0 deletions google-cloud-datastore/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ gem "minitest-focus", "~> 1.4"
gem "minitest-hooks", "~> 1.5"
gem "minitest-mock", "~> 5.27"
gem "minitest-rg", "~> 5.3"
gem "minitest-reporters", "~> 1.5.0", require: false
gem "ostruct", "~> 0.5.5"
gem "rake"
gem "redcarpet", "~> 3.6"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-datastore/acceptance/datastore_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-datastore/samples/acceptance/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
# limitations under the License.

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/hooks/default"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-datastore/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

Comment thread
quartzmo marked this conversation as resolved.
require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
1 change: 1 addition & 0 deletions google-cloud-dns/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ gem "minitest-autotest", "~> 1.0"
gem "minitest-focus", "~> 1.4"
gem "minitest-mock", "~> 5.27"
gem "minitest-rg", "~> 5.3"
gem "minitest-reporters", "~> 1.5.0", require: false
gem "ostruct", "~> 0.5.5"
gem "rake"
gem "redcarpet", "~> 3.6"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-dns/acceptance/dns_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-dns/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
1 change: 1 addition & 0 deletions google-cloud-error_reporting/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ gem "minitest", "~> 5.14"
gem "minitest-autotest", "~> 1.0"
gem "minitest-focus", "~> 1.1"
gem "minitest-rg", "~> 5.2"
gem "minitest-reporters", "~> 1.5.0", require: false
gem "ostruct", "~> 0.6.3"
gem "rack", ">= 0.1"
gem "railties", ">= 5.0", "< 8.1.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-error_reporting/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
require "simplecov"

gem "minitest"

if ENV["CI"] || ENV["KOKORO_JOB_NAME"]
# Load JUnit XML formatter from googleapis/ruby-common-tools to write tmp/reports/sponge_log.xml for Kokoro/TestGrid.
begin
require "gapic/minitest_junit_preloader"
rescue LoadError
# Do nothing if preloader is not available (e.g. local runs)
end
end

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
1 change: 1 addition & 0 deletions google-cloud-errors/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gem "minitest", "~> 5.14"
gem "minitest-autotest", "~> 1.0"
gem "minitest-focus", "~> 1.1"
gem "minitest-rg", "~> 5.2"
gem "minitest-reporters", "~> 1.5.0", require: false
gem "rake"
gem "redcarpet", "~> 3.0"
gem "simplecov", "~> 0.9"
Expand Down
Loading
Loading