Sha256: 523c479f4ce246b72b3ac929e4b2a91aaa70a59aa92a393a3617ee25cca4a193

Contents?: true

Size: 598 Bytes

Versions: 36

Compression:

Stored size: 598 Bytes

Contents

FactoryBot.define do
  factory :test_run, class: 'Inferno::Entities::TestRun' do
    test_session
    test_session_id { test_session.id }

    transient do
      runnable { { test_suite_id: 'BasicTestSuite::Suite' } }
    end

    test_suite_id { runnable[:test_suite_id] }
    test_group_id { runnable[:test_group_id] }
    test_id { runnable[:test_id] }
    status { 'queued' }

    inputs { nil }
    wait_timeout { nil }

    initialize_with { new(**attributes) }

    to_create do |instance|
      Inferno::Repositories::TestRuns.new.create(instance.to_hash).tap(&:runnable)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inferno_core-0.3.12 spec/factories/test_run.rb
inferno_core-0.3.11 spec/factories/test_run.rb
inferno_core-0.3.10 spec/factories/test_run.rb
inferno_core-0.3.9 spec/factories/test_run.rb
inferno_core-0.3.8 spec/factories/test_run.rb
inferno_core-0.3.7 spec/factories/test_run.rb
inferno_core-0.3.6 spec/factories/test_run.rb
inferno_core-0.3.5 spec/factories/test_run.rb
inferno_core-0.3.4 spec/factories/test_run.rb
inferno_core-0.3.3 spec/factories/test_run.rb
inferno_core-0.3.2 spec/factories/test_run.rb
inferno_core-0.3.1 spec/factories/test_run.rb
inferno_core-0.3.0 spec/factories/test_run.rb
inferno_core-0.3.0.rc1 spec/factories/test_run.rb
inferno_core-0.2.0 spec/factories/test_run.rb
inferno_core-0.2.0.rc4 spec/factories/test_run.rb
inferno_core-0.2.0.rc3 spec/factories/test_run.rb
inferno_core-0.2.0.rc2 spec/factories/test_run.rb
inferno_core-0.2.0.rc1 spec/factories/test_run.rb
inferno_core-0.1.4.pre spec/factories/test_run.rb