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

10 lines
201 B
Ruby
Raw Normal View History

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