gitlab-org--gitlab-foss/app/serializers/test_report_summary_entity.rb

9 lines
201 B
Ruby

# frozen_string_literal: true
class TestReportSummaryEntity < Grape::Entity
expose :total
expose :test_suites, using: TestSuiteSummaryEntity do |summary|
summary.test_suites.values
end
end