Sha256: 50ad7bd3dc06ca622317f3613eb271a56704fe6faf9ad83271a5f58d0a4ecddf

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

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

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 "rspec"
require "parallel"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parallel_split_test-0.1.3 bin/parallel_split_test
parallel_split_test-0.1.2 bin/parallel_split_test
parallel_split_test-0.1.1 bin/parallel_split_test
parallel_split_test-0.1.0 bin/parallel_split_test