diff --git a/Gemfile.lock b/Gemfile.lock index 4fdb00693..c761682d5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -325,6 +325,7 @@ PLATFORMS arm64-darwin-21 arm64-darwin-22 x86_64-darwin-20 + x86_64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/lib/inferno/config/boot/suites.rb b/lib/inferno/config/boot/suites.rb index b698b3e55..0e621b774 100644 --- a/lib/inferno/config/boot/suites.rb +++ b/lib/inferno/config/boot/suites.rb @@ -25,5 +25,13 @@ end ObjectSpace.each_object(TracePoint, &:disable) + + Inferno::Entities::TestSuite.descendants.each do |descendant| + # When ID not assigned in custom test suites, Runnable.id will return default ID + # equal to the custom test suite's parent class name + if descendant.id.blank? || descendant.id == 'Inferno::Entities::TestSuite' + raise StandardError, "Error initializing test suite #{descendant.name}: test suite ID is not set" + end + end end end