Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_report_total_type.rb « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48aea1257c5283b84ca463c5ff131e8a603fd496 (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::Types::Float, 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