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

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

class TestReportEntity < Grape::Entity
  expose :total_time, documentation: { type: 'integer', example: 180 }
  expose :total_count, documentation: { type: 'integer', example: 1 }

  expose :success_count, documentation: { type: 'integer', example: 1 }
  expose :failed_count, documentation: { type: 'integer', example: 0 }
  expose :skipped_count, documentation: { type: 'integer', example: 0 }
  expose :error_count, documentation: { type: 'integer', example: 0 }

  expose :test_suites, using: TestSuiteEntity, documentation: { is_array: true } do |report|
    report.test_suites.values
  end
end