e6226e8cb3
It adds a base class for CompareTestReportsService containing common code with CompareLicenseManagementReportsService which is present in GitLab Enterprise Edition.
17 lines
328 B
Ruby
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
|