Sha256: 45851722c09569f8e438eacf1cd471d09606c47d5d440d5de0c77e39a8d0fa59

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

module Inferno
  module Web
    module Serializers
      class TestRun < Serializer
        identifier :id
        field :test_session_id

        field :status
        field :test_count do |test_run, options|
          test_run.test_count(options[:suite_options])
        end

        field :test_group_id, if: :field_present?
        field :test_suite_id, if: :field_present?
        field :test_id, if: :field_present?

        association :results, blueprint: Result
        association :inputs, blueprint: Input
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inferno_core-0.3.12 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.3.11 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.3.10 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.3.9 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.3.8 lib/inferno/apps/web/serializers/test_run.rb