Module: TestBalancer::Features
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#all(root) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/test_balancer/features.rb', line 9 def all root root = Pathname.new(root) features = [] json = exec %{cd "#{root}" && bundle exec cucumber -P --dry-run --format json features/ | tail -n 1} JSON.parse(json)['features'].each{|feature| feature['elements'].each{|element| path, line = element['file_colon_line'].split(':') features << Test.new(path, line) } } features end |