Method: Multicuke::Runner#initialize
- Defined in:
- lib/multicuke/runner.rb
#initialize(features_root) {|_self| ... } ⇒ Runner
Returns a new instance of Runner.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/multicuke/runner.rb', line 92 def initialize(features_root) @features_root_path = features_root yield self if block_given? @dry_run = false if dry_run.nil? @forks_pool_size ||= 5 @require_features_root_option = true if require_features_root_option.nil? @output_dir_name = "cucumber_reports" unless output_dir_name @output_path = File.("..", features_root_path) unless output_path @excluded_dirs ||= [] @included_only_dirs ||= [] ||= [] @reports_path = File.join(output_path, output_dir_name) @system_command ||= SystemCommand.new end |