2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class TestStage < BaseStage
|
2016-12-02 16:09:29 +00:00
|
|
|
def initialize(*args)
|
|
|
|
@start_time_attrs = mr_metrics_table[:latest_build_started_at]
|
|
|
|
@end_time_attrs = mr_metrics_table[:latest_build_finished_at]
|
|
|
|
|
|
|
|
super(*args)
|
2016-11-21 16:15:25 +00:00
|
|
|
end
|
|
|
|
|
2016-12-02 16:09:29 +00:00
|
|
|
def stage
|
|
|
|
:test
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
"Total test time for all commits/merges"
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|