debian-mirror-gitlab/lib/gitlab/cycle_analytics/test_stage.rb

34 lines
608 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Gitlab
module CycleAnalytics
class TestStage < BaseStage
2019-09-04 21:01:54 +05:30
include TestHelper
2017-08-17 22:00:37 +05:30
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