Sha256: f78771a2791c3458115503f02e95027bfdc0dca82d45027a6d1452d0757b3962
Contents?: true
Size: 490 Bytes
Versions: 17
Compression:
Stored size: 490 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require_relative '../test/tool/test_builder' file_info = {} OptionParser.new do |opt| opt.banner = 'Usage: bin/gentest [file] [option]' opt.on('-m METHOD', 'Method name in the test file') do |m| file_info[:method] = m end opt.on('-c CLASS', 'Class name in the test file') do |c| file_info[:class] = c end opt.parse!(ARGV) end exit if ARGV.empty? DEBUGGER__::TestBuilder.new(ARGV, file_info[:method], file_info[:class]).start
Version data entries
17 entries across 17 versions & 1 rubygems