Sha256: caac9f4b3d4c77b5e3fe9526d4d7f430e1637fcfde4c04ce5fb716c90410f404

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift File.dirname(__FILE__) + "/../lib"
require 'cuke_iterations'
require 'trollop'
require 'fileutils'

include CukeIterations

opts = Trollop::options do
  opt :features_dir, "Features directory", :default => 'features'
  opt :iteration_file, "Iterations file to use", :default => 'cuke_iterations.yml'
  opt :out, "Name of runfile to write", :default => 'run.txt'
end

features_dir = opts[:features_dir]
Trollop::die "Couldn't find features dir '#{features_dir}'" unless Dir.exist?(features_dir)

iteration_file = IterationFileFinder.new.find(features_dir, opts[:iteration_file])

ScenarioFileWriter.new.write_scenarios(features_dir, iteration_file, opts[:out])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cuke_iterations-0.0.2 bin/cuke_iterations