summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r--app/models/ci/pipeline.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 25393221005..b2455b167b0 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -603,14 +603,14 @@ module Ci
@latest_builds_with_artifacts ||= builds.latest.with_artifacts_archive.to_a
end
- def has_test_results?
+ def has_test_reports?
complete? && builds.with_test_reports.any?
end
- def test_results
- Gitlab::Ci::Reports::TestResults.new.tap do |test_results|
+ def test_reports
+ Gitlab::Ci::Reports::TestReports.new.tap do |test_reports|
builds.with_test_reports.includes(:job_artifacts_junit).each do |build|
- build.collect_test_results(test_results)
+ build.collect_test_reports(test_reports)
end
end
end