Sha256: cc33211bb9c3fd7fd2a7ab91acdcf2288bc495e0dcae327daadf3c7cb8a268da
Contents?: true
Size: 909 Bytes
Versions: 3
Compression:
Stored size: 909 Bytes
Contents
module SnapCI module ParallelTests module Partition module CLIHelper def render_header(optparser, options) optparser.banner = <<BANNER Partition a list of files/directories and print them Usage: #{optparser.program_name} [options] [files or directories] Example: #{optparser.program_name} test/models test/controllers/foo_controller_test.rb Can typically be used as - $ your-test-runner $(snap-ci-parallel-partition location/of/test/files) BANNER end def render_options(optparser, options) optparser.on('-p', '--pattern [PATTERN]', 'only find files matching this pattern') do |pattern| options[:pattern] = /#{pattern}/ end end def render_footer(optparser, options) optparser.separator '' end extend CLIHelper end #CLIHelper end #RSpec end #ParallelTests end #SnapCI
Version data entries
3 entries across 3 versions & 1 rubygems