gitlab-org--gitlab-foss/app/services/ci/compare_test_reports_service.rb
Gilbert Roulot e6226e8cb3 Generalise test compare service
It adds a base class for CompareTestReportsService
containing common code with CompareLicenseManagementReportsService
which is present in GitLab Enterprise Edition.
2018-12-11 11:39:22 +01:00

17 lines
328 B
Ruby

# frozen_string_literal: true
module Ci
class CompareTestReportsService < CompareReportsBaseService
def comparer_class
Gitlab::Ci::Reports::TestReportsComparer
end
def serializer_class
TestReportsComparerSerializer
end
def get_report(pipeline)
pipeline&.test_reports
end
end
end