Class: Inferno::Jobs::ExecuteTestRun

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/inferno/jobs/execute_test_run.rb

Instance Method Summary collapse

Instance Method Details

#perform(test_run_id) ⇒ Object



6
7
8
9
10
11
# File 'lib/inferno/jobs/execute_test_run.rb', line 6

def perform(test_run_id)
  test_run = Inferno::Repositories::TestRuns.new.find(test_run_id)
  test_session = Inferno::Repositories::TestSessions.new.find(test_run.test_session_id)

  TestRunner.new(test_session:, test_run:).start
end