Module: Cuporter::FeatureParser
- Defined in:
- lib/cuporter/feature_parser.rb,
lib/cuporter/feature_parser/language.rb,
lib/cuporter/feature_parser/node_parser.rb,
lib/cuporter/feature_parser/parser_base.rb,
lib/cuporter/feature_parser/tag_nodes_parser.rb
Defined Under Namespace
Classes: Language, NodeParser, ParserBase, TagNodesParser
Class Method Summary collapse
-
.node(file, doc, filter, root_dir) ⇒ Object
returns a feature node populated with scenarios.
-
.tag_nodes(file, report, filter, root_dir) ⇒ Object
adds a node to the doc for each cucumber ‘@’ tag, populated with features and scenarios.
Class Method Details
.node(file, doc, filter, root_dir) ⇒ Object
returns a feature node populated with scenarios
18 19 20 21 22 |
# File 'lib/cuporter/feature_parser.rb', line 18 def self.node(file, doc, filter, root_dir) parser = NodeParser.new(file, doc, filter) parser.root = root_dir parser.parse_feature end |
.tag_nodes(file, report, filter, root_dir) ⇒ Object
adds a node to the doc for each cucumber ‘@’ tag, populated with features and scenarios
11 12 13 14 15 |
# File 'lib/cuporter/feature_parser.rb', line 11 def self.tag_nodes(file, report, filter, root_dir) parser = TagNodesParser.new(file, report, filter) parser.root = root_dir parser.parse_feature end |