Sha256: c9eb14dd1213d4b56a3eb3025c0e15564fc8fb97263eb9138993dcaee1cfd3c9
Contents?: true
Size: 1.21 KB
Versions: 59
Compression:
Stored size: 1.21 KB
Contents
require_relative 'preset' require_relative 'suite_option' require_relative 'test_group' module Inferno module Web module Serializers class TestSuite < Serializer view :summary do identifier :id field :title field :short_title field :description field :short_description field :input_instructions field :version field :links field :suite_summary field :test_count do |suite, options| suite.test_count(options[:suite_options]) end association :suite_options, blueprint: SuiteOption association :presets, view: :summary, blueprint: Preset end view :full do include_view :summary field :test_groups do |suite, options| suite_options = options[:suite_options] TestGroup.render_as_hash(suite.groups(suite_options), suite_options:) end field :configuration_messages field :inputs do |suite, options| suite_options = options[:suite_options] Input.render_as_hash(suite.available_inputs(suite_options).values) end end end end end end
Version data entries
59 entries across 59 versions & 1 rubygems