Skip to content

Commit

Permalink
minitest instrumentation does not work with mixins at all
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Mar 11, 2024
1 parent f71d45c commit ed680fa
Show file tree
Hide file tree
Showing 18 changed files with 1,243 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,23 @@ def self.with_ci_queue_rspec_gem(rspec_versions: 3, ci_queue_versions: 0)
end
end

def self.with_active_support_gem(versions: 7)
Array(versions).each do |activesupport_v|
appraise "activesupport-#{activesupport_v}" do
gem "activesupport", "~> #{activesupport_v}"
end
end
end

ruby_version = Gem::Version.new(RUBY_ENGINE_VERSION)
major, minor, = ruby_version.segments

with_minitest_gem
with_rspec_gem
with_cucumber_gem(versions: 3..9)
with_ci_queue_minitest_gem
with_ci_queue_rspec_gem

major, minor, = Gem::Version.new(RUBY_ENGINE_VERSION).segments
with_active_support_gem(versions: 7)

ruby_runtime = "#{RUBY_ENGINE}-#{major}.#{minor}"

Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ TEST_METADATA = {
"minitest" => {
"minitest-5" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
},
"activesupport" => {
"activesupport-7" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
},
"ci_queue_minitest" => {
"ci-queue-0-minitest-5" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
},
Expand Down Expand Up @@ -108,6 +111,7 @@ namespace :spec do
:cucumber,
:rspec,
:minitest,
:activesupport,
:ci_queue_minitest,
:ci_queue_rspec
].each do |contrib|
Expand Down
31 changes: 31 additions & 0 deletions gemfiles/jruby_9.4_activesupport_7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "os"
gem "climate_control"
gem "rspec"
gem "rspec-collection_matchers"
gem "rspec_junit_formatter"
gem "appraisal"
gem "timecop"
gem "standard", "~> 1.31"
gem "yard"
gem "webrick"
gem "pimpmychangelog", ">= 0.1.2"
gem "simplecov"
gem "simplecov-cobertura", "~> 2.1.0"
gem "activesupport", "~> 7"

group :check do

end

group :development do

end

gemspec path: "../"
158 changes: 158 additions & 0 deletions gemfiles/jruby_9.4_activesupport_7.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
PATH
remote: ..
specs:
datadog-ci (0.8.0)
msgpack

GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.6-java)
climate_control (1.2.0)
coderay (1.1.3)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
ddtrace (1.20.0)
datadog-ci (~> 0.7.0)
debase-ruby_core_source (= 3.3.1)
libdatadog (~> 5.0.0.1.0)
libddwaf (~> 1.14.0.0.0)
msgpack
debase-ruby_core_source (3.3.1)
diff-lcs (1.5.1)
docile (1.4.0)
drb (2.2.1)
ffi (1.16.3-java)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.1-java)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0)
libddwaf (1.14.0.0.0-java)
ffi (~> 1.0)
lint_roller (1.1.0)
method_source (1.0.0)
minitest (5.22.2)
msgpack (1.7.2-java)
mutex_m (0.2.0)
os (1.1.4)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pimpmychangelog (0.1.3)
pry (0.14.2-java)
coderay (~> 1.1)
method_source (~> 1.0)
spoon (~> 0.0)
racc (1.7.3-java)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-collection_matchers (1.2.1)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
spoon (0.0.6)
ffi
standard (1.34.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.60)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
thor (1.3.1)
timecop (0.9.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
yard (0.9.36)

PLATFORMS
universal-java-11

DEPENDENCIES
activesupport (~> 7)
appraisal
climate_control
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
rake
rspec
rspec-collection_matchers
rspec_junit_formatter
simplecov
simplecov-cobertura (~> 2.1.0)
standard (~> 1.31)
timecop
webrick
yard

BUNDLED WITH
2.3.26
32 changes: 32 additions & 0 deletions gemfiles/ruby_2.7_activesupport_7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "os"
gem "climate_control"
gem "rspec"
gem "rspec-collection_matchers"
gem "rspec_junit_formatter"
gem "appraisal"
gem "timecop"
gem "standard", "~> 1.31"
gem "yard"
gem "redcarpet"
gem "webrick"
gem "pimpmychangelog", ">= 0.1.2"
gem "simplecov"
gem "simplecov-cobertura", "~> 2.1.0"
gem "activesupport", "~> 7"

group :check do

end

group :development do

end

gemspec path: "../"
Loading

0 comments on commit ed680fa

Please sign in to comment.