Class: Cucumber::Cli::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_tree/configuration.rb

Instance Method Summary collapse

Instance Method Details

#__cucumber_orig_feature_files__Object



2
# File 'lib/cucumber_tree/configuration.rb', line 2

alias __cucumber_orig_feature_files__ feature_files

#feature_filesObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cucumber_tree/configuration.rb', line 4

def feature_files
  files = __cucumber_orig_feature_files__
  missing_files = []

  files.each do |file|
    (file.count('/') - 1).times do
      file = file.gsub(/\A(.*)\/.*(\.feature)(:\d+)?\z/, '\1\2')
      missing_files << file if File.file?(file)
    end
  end

  (missing_files + files).uniq.sort!
end