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.9 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.8 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.7 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.7.pre lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.6 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.5 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.4 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.3 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.2 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.2.pre lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.1 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.1.pre2 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.1.pre lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.0 lib/inferno/apps/web/serializers/test_run.rb