summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/test_report_summary_type.rb
blob: 87207c8a765b07ffc3d0dbdc4d49b05956bf40fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    # This is presented through `PipelineType` that has its own authorization
    class TestReportSummaryType < BaseObject
      graphql_name 'TestReportSummary'
      description 'Test report for a pipeline'

      field :total, Types::Ci::TestReportTotalType, null: false,
        description: 'Total report statistics for a pipeline test report.'

      field :test_suites, Types::Ci::TestSuiteSummaryType.connection_type, null: false,
        description: 'Test suites belonging to a pipeline test report.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end