Sha256: 5c5a86beb779eb2046bb69caebf72448b6ce42ad0ac17b3bc804a4fba184c56a

Contents?: true

Size: 597 Bytes

Versions: 54

Compression:

Stored size: 597 Bytes

Contents

require_relative 'input'
require_relative 'result'

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

54 entries across 54 versions & 1 rubygems

Version Path
inferno_core-0.4.29 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.28 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.27 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.26 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.25 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.24 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.23 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.22 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.21 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.20 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.19 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.18 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.17 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.16 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.15 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.14 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.13 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.12 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.11 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.10 lib/inferno/apps/web/serializers/test_run.rb