Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FI-3395 Fix suite describe with routes #577

Merged
merged 8 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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 lib/inferno/apps/cli/suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def input_template(suite_id)
LONGDESC
def describe(suite_id)
ENV['NO_DB'] = 'true'
require_relative '../../../inferno'
Inferno::Application.start(:suites)

suite = Inferno::Repositories::TestSuites.new.find(suite_id)
Expand Down
3 changes: 3 additions & 0 deletions lib/inferno/config/boot/suites.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# You must require 'lib/inferno.rb' file before invoking
# this provider via `Inferno::Application.start(:suites)`
# because `Inferno.routes` must be defined for some suites
Inferno::Application.register_provider(:suites) do
prepare do
target_container.start :logging
Expand Down
Loading