lib/parallel_tests/cucumber/scenarios.rb in parallel_tests-0.16.15 vs lib/parallel_tests/cucumber/scenarios.rb in parallel_tests-0.16.16
- old
+ new
@@ -9,10 +9,10 @@
class Scenarios
class << self
def all(files, options={})
tags = []
tags.concat options[:ignore_tag_pattern].to_s.split(/\s*,\s*/).map {|tag| "~#{tag}" }
- tags.concat options[:test_options].to_s.scan(/(?:-t|--tags) (@\w+)/).flatten
+ tags.concat options[:test_options].to_s.scan(/(?:-t|--tags) (~?@[\w,~@]+)/).flatten
split_into_scenarios files, tags.uniq
end
private