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.6.1 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.6.0 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.5.4 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.5.3 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.5.2 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.5.1 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.5.0 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.44 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.43 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.42 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.41 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.40 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.39 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.38 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.35 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.34 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.33 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.32 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.31 lib/inferno/apps/web/serializers/test_run.rb
inferno_core-0.4.30 lib/inferno/apps/web/serializers/test_run.rb