[MacRuby-devel] [MacRuby] #362: Add Unit Testing and Embed MacRuby to Project Template

MacRuby ruby-noreply at macosforge.org
Fri Oct 2 13:24:16 PDT 2009


#362: Add Unit Testing and Embed MacRuby to Project Template
---------------------------------+------------------------------------------
 Reporter:  dylan@…              |       Owner:  eloy.de.enige@…        
     Type:  enhancement          |      Status:  new                    
 Priority:  trivial              |   Milestone:                         
Component:  MacRuby              |    Keywords:                         
---------------------------------+------------------------------------------

Comment(by eloy.de.enige@…):

 So, I was gonna apply it as Laurent already tried it and said it worked
 great, but I'd first like to run some stuff by you:

 How about changing the test_suite.rb file to run_suite.rb, move it into
 the Tests dir and use glob like:

 {{{
 Dir.glob(File.expand_path('../**/*_test.rb', __FILE__)).each { |test|
 require test }
 }}}

 And rename the test_stub.rb to stub_test.rb.

 So invoking the complete suite would be: $ ruby Tests/run_suite.rb

 Thoughts?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/362#comment:6>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list