lib/parallel_tests/cucumber/scenarios.rb in parallel_tests-3.11.1 vs lib/parallel_tests/cucumber/scenarios.rb in parallel_tests-3.12.0

- old
+ new

@@ -50,10 +50,12 @@ # We make an attempt to parse the gherkin document, this could be failed if the document is not well formatted feature_tags = feature.tags.map(&:name) # We loop on each children of the feature - feature.tests.each do |test| + test_models = feature.tests + test_models += feature.rules.flat_map(&:tests) if feature.respond_to?(:rules) # cuke_modeler >= 3.2 supports rules + test_models.each do |test| # It's a scenario, we add it to the scenario_line_logger scenario_line_logger.visit_feature_element(document.path, test, feature_tags, line_numbers: test_lines) end end