Carl Lerche
2006-Sep-25 17:52 UTC
Textmate RoR Bundle tweak - Running tests straight from TM?
Hello, Ok, I''m probably missing something obvious here, but I can''t find anything in textmate to let you run your tests without going to the terminal. With everything else in there, it seems like it would be something included. Anyway, I took a few minutes from work to do a quick hack to the bundle. I bound the run test command to command - option - G. If the textmate cursor is in a controller or model, it will run the associated test file. If the TM cursor is in a test file (unit or functional) it will only run the test method that the cursor is in (so that when I''m writing a test, I can run it real quick). If the cursor is outside of a test method (test_*) it will run the entire file. I added a file to the bundle ( bin/test_helper.rb) and a command. I also might have found a bug in the bundle. See the comments in bin/test_helper.rb Please let me know if there already is something out there that would probably be far more thought through than this quick hack. Thanks, -carl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---