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

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

class TestSuiteEntity < Grape::Entity
  expose :name
  expose :total_time
  expose :total_count

  expose :success_count
  expose :failed_count
  expose :skipped_count
  expose :error_count

  expose :test_cases, using: TestCaseEntity do |test_suite|
    test_suite.test_cases.values.flat_map(&:values)
  end
end