class ErpDevSvcs::Commands::Test
Public Class Methods
execute()
click to toggle source
# File lib/erp_dev_svcs/commands/test.rb, line 8 def self.execute new() end
new()
click to toggle source
# File lib/erp_dev_svcs/commands/test.rb, line 12 def initialize options = {:gems => nil} opt_parser = OptionParser.new do |opt| opt.banner = "Usage: compass_ae-dev test [OPTIONS]" opt.on("-g", "--gems [GEMLIST]", Array, "List of engines to test;"\ "defaults to all") {|gem| options[:gems] = gem} opt.on_tail("-h", "--help", "Show this message") do puts opt exit end end opt_parser.parse! ErpDevSvcs::Commands::Helper.exec_in_engines(options[:gems]) do |engine_name| puts "\nRunning #{engine_name}'s test suite... \n" result = %x[bundle exec rspec --tty --color spec] puts result end end