Sha256: 08b233a74dfd33d1b046aadf0ae5a191f6771610e194b79e60f7ffa3a024ded6

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

#!/usr/bin/env ruby
require "optparse"
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')

parser = OptionParser.new do |opts|
  opts.banner = <<BANNER
Split a big test file into multiple chunks and run them in parallel, giving ENV['TEST_ENV_NUMBER'] ('', '2', '3', ...)

Usage:
    parallel_split_test test/baz/xxx_text.rb

Options are:
BANNER
  opts.on("-v", "--version", "Show Version"){ require 'parallel_split_test/version'; puts ParallelSplitTest::VERSION; exit}
  opts.on("-h", "--help", "Show this.") { puts opts; exit }
end

parser.parse!

if ARGV.empty?
  puts parser
  exit
end

require 'parallel_split_test/runner'
exit ParallelSplitTest::Runner.run(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parallel_split_test-0.2.0 bin/parallel_split_test