Sha256: bf7f5ee167eec4a74f898764a78bcd81c995d1153b193b5a3e9965e85ff012e0
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
require 'gherkin/tag_expression' module CukeForker module Formatters class ScenarioLineLogger attr_reader :scenarios def initialize(tag_expression = Gherkin::TagExpression.new([])) @scenarios = [] @tag_expression = tag_expression end def visit_feature_element(feature_element) if @tag_expression.eval feature_element.source_tag_names if feature_element.respond_to? :line @scenarios << "#{feature_element.feature.file}:#{feature_element.line}" else @scenarios << "#{feature_element.feature.file}:#{feature_element.instance_variable_get(:@line)}" end end end def method_missing(*args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems