summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/test_stage.rb
blob: 4787a906c07867799483ab99ac690957750d1019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

module Gitlab
  module CycleAnalytics
    class TestStage < BaseStage
      include TestHelper

      def start_time_attrs
        @start_time_attrs ||= mr_metrics_table[:latest_build_started_at]
      end

      def end_time_attrs
        @end_time_attrs ||= mr_metrics_table[:latest_build_finished_at]
      end

      def name
        :test
      end

      def title
        s_('CycleAnalyticsStage|Test')
      end

      def legend
        _("Related Jobs")
      end

      def description
        _("Total test time for all commits/merges")
      end
    end
  end
end