Sha256: 6cce8d9e7cf4b683b5972cb90c15f644081fe393b00b2be8ec2f624c3807c5ba
Contents?: true
Size: 775 Bytes
Versions: 5
Compression:
Stored size: 775 Bytes
Contents
require 'gherkin/tag_expression' module JCukeForker 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.evaluate(feature_element.source_tags) line_number = if feature_element.respond_to?(:line) feature_element.line else feature_element.location.line end @scenarios << [feature_element.feature.file, line_number].join(':') end end def method_missing(*args) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems