Sha256: 99c8541b1afbe73ebb4d307dfc7905f1a613d830e943861a30623345d3ab61e7
Contents?: true
Size: 826 Bytes
Versions: 2
Compression:
Stored size: 826 Bytes
Contents
module Borg class CucumberRunner include AbstractAdapter def run(n = 3) redirect_stdout() load_environment('cucumber') remove_file_groups_from_redis('cucumber',n) do |index,feature_files| prepare_databse(index) unless try_migration_first(index) full_feature_path = feature_files.split(',').map do |fl| Rails.root.to_s + fl end args = %w(--format progress) + full_feature_path failure = Cucumber::Cli::Main.execute(args) raise "Cucumber failed" if failure end end def add_to_redis(worker_count) feature_files = Dir["#{Rails.root}/features/**/*.feature"].map do |fl| fl.gsub(/#{Rails.root}/,'') end.sort.in_groups(worker_count, false) add_files_to_redis(feature_files,'cucumber') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
borg-0.0.8 | lib/borg/borg_cucumber.rb |
borg-0.0.7 | lib/borg/borg_cucumber.rb |