Class: ErpDevSvcs::Commands::Test
- Inherits:
-
Object
- Object
- ErpDevSvcs::Commands::Test
- Defined in:
- lib/erp_dev_svcs/commands/test.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize ⇒ Test
Returns a new instance of Test.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/erp_dev_svcs/commands/test.rb', line 12 def initialize = {:gems => nil} opt_parser = OptionParser.new do |opt| opt. = "Usage: compass-util test [OPTIONS]" opt.on("-g", "--gems [GEMLIST]", Array, "List of engines to test;"\ "defaults to all") {|gem| [: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([:gems]) do |engine_name| puts "\nRunning #{engine_name}'s test suite... \n" result = %x[bundle exec rspec --tty --color spec] puts result end end |
Class Method Details
.execute ⇒ Object
8 9 10 |
# File 'lib/erp_dev_svcs/commands/test.rb', line 8 def self.execute new() end |