summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/test_report_total_type.rb
blob: aa07a39151971033fa15852e34500c76fb9887cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class TestReportTotalType < BaseObject
      graphql_name 'TestReportTotal'
      description 'Total test report statistics.'

      field :time, GraphQL::FLOAT_TYPE, null: true,
        description: 'Total duration of the tests.'

      field :count, GraphQL::Types::Int, null: true,
        description: 'Total number of the test cases.'

      field :success, GraphQL::Types::Int, null: true,
        description: 'Total number of test cases that succeeded.'

      field :failed, GraphQL::Types::Int, null: true,
        description: 'Total number of test cases that failed.'

      field :skipped, GraphQL::Types::Int, null: true,
        description: 'Total number of test cases that were skipped.'

      field :error, GraphQL::Types::Int, null: true,
        description: 'Total number of test cases that had an error.'

      field :suite_error, GraphQL::Types::String, null: true,
        description: 'Test suite error message.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end