Sha256: 7f1c2782200f2017ab92eb4de8512aaacc21922b39d86118e142b86936c8d6bc

Contents?: true

Size: 906 Bytes

Versions: 1

Compression:

Stored size: 906 Bytes

Contents

module Inferno
  module Web
    module Serializers
      class TestGroup < Serializer
        identifier :id

        field :short_id
        field :title
        field :short_title
        field :description
        field :short_description
        field :input_instructions
        field :test_count
        field :run_as_group?, name: :run_as_group
        field :user_runnable?, name: :user_runnable
        field :optional?, name: :optional

        field :test_groups do |group, options|
          TestGroup.render_as_hash(group.groups(options[:suite_options]))
        end
        field :tests do |group, options|
          Test.render_as_hash(group.tests(options[:suite_options]))
        end
        field :available_inputs, name: :inputs, extractor: HashValueExtractor, blueprint: Input
        field :output_definitions, name: :outputs, extractor: HashValueExtractor
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inferno_core-0.3.5 lib/inferno/apps/web/serializers/test_group.rb