Class: ParallelTests::Cucumber::Scenarios
- Inherits:
-
Object
- Object
- ParallelTests::Cucumber::Scenarios
- Defined in:
- lib/parallel_tests/cucumber/scenarios.rb
Class Method Summary collapse
Class Method Details
.all(files, options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/parallel_tests/cucumber/scenarios.rb', line 19 def all(files, = {}) # Parse tag expression from given test options and ignore tag pattern. Refer here to understand how new tag expression syntax works - https://github.com/cucumber/cucumber/tree/master/tag-expressions = [] words = [:test_options] || [] words.each_with_index { |w, i| << words[i + 1] if ["-t", "--tags"].include?(w) } if ignore = [:ignore_tag_pattern] << "not (#{ignore})" end = .compact.join(" and ") split_into_scenarios files, end |