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

test_case_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: 6e5f55aa3ed8119b049850dec76b5392ce889acd (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
34
35
36
37
38
39
40
41
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class TestCaseType < BaseObject
      graphql_name 'TestCase'
      description 'Test case in pipeline test report.'

      connection_type_class(Types::CountableConnectionType)

      field :status, Types::Ci::TestCaseStatusEnum, null: true,
        description: "Status of the test case (#{::Gitlab::Ci::Reports::TestCase::STATUS_TYPES.join(', ')})."

      field :name, GraphQL::Types::String, null: true,
        description: 'Name of the test case.'

      field :classname, GraphQL::Types::String, null: true,
        description: 'Classname of the test case.'

      field :execution_time, GraphQL::Types::Float, null: true,
        description: 'Test case execution time in seconds.'

      field :file, GraphQL::Types::String, null: true,
        description: 'Path to the file of the test case.'

      field :attachment_url, GraphQL::Types::String, null: true,
        description: 'URL of the test case attachment file.'

      field :system_output, GraphQL::Types::String, null: true,
        description: 'System output of the test case.'

      field :stack_trace, GraphQL::Types::String, null: true,
        description: 'Stack trace of the test case.'

      field :recent_failures, Types::Ci::RecentFailuresType, null: true,
        description: 'Recent failure history of the test case on the base branch.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end