You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # frozen_string_literal: true
-
- module Cucumber
- module Formatter
- class DurationExtractor
- attr_reader :result_duration
-
- def initialize(result)
- @result_duration = 0
- result.describe_to(self)
- end
-
- def passed(*) end
-
- def failed(*) end
-
- def undefined(*) end
-
- def skipped(*) end
-
- def pending(*) end
-
- def exception(*) end
-
- def duration(duration, *)
- duration.tap { |dur| @result_duration = dur.nanoseconds / 10**9.0 }
- end
-
- def attach(*) end
- end
- end
- end
|