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

test_suite_comparer_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9fa3a897ebe25c42ed995b2593504ee6cec247cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class TestSuiteComparerEntity < Grape::Entity
  expose :name
  expose :total_status, as: :status

  expose :summary do
    expose :total_count, as: :total
    expose :resolved_count, as: :resolved
    expose :failed_count, as: :failed
  end

  expose :new_failures, using: TestCaseEntity
  expose :resolved_failures, using: TestCaseEntity
  expose :existing_failures, using: TestCaseEntity
end