2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class TestStage < BaseStage
|
2016-12-01 10:21:24 +00:00
|
|
|
def description
|
|
|
|
"Total test time for all commits/merges"
|
2016-11-21 16:15:25 +00:00
|
|
|
end
|
|
|
|
|
2016-11-18 15:38:02 +00:00
|
|
|
def median
|
2016-12-01 10:21:24 +00:00
|
|
|
@fetcher.median(:test,
|
|
|
|
MergeRequest::Metrics.arel_table[:latest_build_started_at],
|
|
|
|
MergeRequest::Metrics.arel_table[:latest_build_finished_at])
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|