Bill Walton
2010-Aug-25 15:45 UTC
Know of a Linux or Windows editor / IDE with support for TDD for RoR?
I saw a demo of VisualStudio''s support for TDD for C++ (or C#, I can''t recall which) this past weekend and was impressed. Anybody know of an editor or IDE for Linux (Ubuntu specifically) or Windows that has built-in support for TDD for either Ruby or Rails? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Adam
2010-Aug-25 18:43 UTC
Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?
Rake comes with great support for unit testing with Test::Unit out of the box, you don''t need an IDE to hook it all up for you. You can define a Rake::TestTask and just run ''rake test''. Rails does this automatically. RSpec comes with a similar Rake task that''s as easy to define. If you really want your IDE to show you colors and stuff, I know RubyMine supports testing Rails applications and is cross-platform (written in Java). Adam Stegman On Wed, Aug 25, 2010 at 10:45 AM, Bill Walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I saw a demo of VisualStudio''s support for TDD for C++ (or C#, I can''t > recall which) this past weekend and was impressed. Anybody know of an > editor or IDE for Linux (Ubuntu specifically) or Windows that has > built-in support for TDD for either Ruby or Rails? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bill Walton
2010-Aug-25 19:02 UTC
Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?
Hi Adam, On Wed, Aug 25, 2010 at 1:43 PM, Adam <astegman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Rake comes with great support for unit testing with Test::Unit out of the > box, you don''t need an IDE to hook it all up for you. You can define a > Rake::TestTask and just run ''rake test''. Rails does this automatically. > RSpec comes with a similar Rake task that''s as easy to define. > If you really want your IDE to show you colors and stuff, I know RubyMine > supports testing Rails applications and is cross-platform (written in Java).I''m a long-time user and fan of Test::Unit but TDD with it requires quite a bit of typing. What I saw demonstrated with VisualStudio was very impressive though. It supported Red-Green-Refactor at level I''d never seen before. Write the test, it knows you don''t have the method you''re testing and auto-generates it. That sort of thing. It was a very brief demo but what he showed was very impressive. I''ve never been a big fan of IDEs for Rails development. I use the Ruby version of NetBeans because it lets me use the same tool on Windows and Linux. That and the debugger. But it''s got nothing like what I saw last weekend re: built-in TDD support. I''ll check out RubyMine. Thanks! Bill> > > On Wed, Aug 25, 2010 at 10:45 AM, Bill Walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> I saw a demo of VisualStudio''s support for TDD for C++ (or C#, I can''t >> recall which) this past weekend and was impressed. Anybody know of an >> editor or IDE for Linux (Ubuntu specifically) or Windows that has >> built-in support for TDD for either Ruby or Rails? >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Aug-25 19:09 UTC
Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?
Bill Walton wrote:> Hi Adam, > > On Wed, Aug 25, 2010 at 1:43 PM, Adam <astegman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Rake comes with great support for unit testing with Test::Unit out of the >> box, you don''t need an IDE to hook it all up for you. You can define a >> Rake::TestTask and just run ''rake test''. Rails does this automatically. >> RSpec comes with a similar Rake task that''s as easy to define. >> If you really want your IDE to show you colors and stuff, I know RubyMine >> supports testing Rails applications and is cross-platform (written in Java). > > I''m a long-time user and fan of Test::Unit but TDD with it requires > quite a bit of typing. What I saw demonstrated with VisualStudio was > very impressive though. It supported Red-Green-Refactor at level I''d > never seen before. Write the test, it knows you don''t have the method > you''re testing and auto-generates it.Perhaps you want Autotest? Again, no IDE necessary. (But I think method autogeneration in this case would be dangerous. Doesn''t that mean you don''t see the test fail?) I know that RSpec and Cucumber support an HTML output format where you can see the red and green nicely displayed in your browser. I hate Test::Unit, so I haven''t used it enough to be sure if it does the same thing, but it might.> That sort of thing. It was a > very brief demo but what he showed was very impressive. I''ve never > been a big fan of IDEs for Rails development. I use the Ruby version > of NetBeans because it lets me use the same tool on Windows and Linux.Er...so does any decent editor. KomodoEdit (my current favorite) exists for Windows, Linux, and Mac OS; so does jEdit.> That and the debugger.Does ruby-debug-ide actually work with NetBeans? It didn''t when I tried earlier this year.> But it''s got nothing like what I saw last > weekend re: built-in TDD support. I''ll check out RubyMine. > > Thanks! > BillBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bill Walton
2010-Aug-25 19:26 UTC
Re: Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?
Hi Marnen, On Wed, Aug 25, 2010 at 2:09 PM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Perhaps you want Autotest? Again, no IDE necessary. > > (But I think method autogeneration in this case would be dangerous. > Doesn''t that mean you don''t see the test fail?)You do see the test fail. Then you ''tell'' it to generate the method. Again, it was a very brief demo. I may schedule a follow-up with the guy to see more. The thing that was really impressive is that he didn''t switch from one tool to another. The degree of integration of the test tool into the development tool was like nothing I''d ever seen before. But then I don''t spend much time reviewing editors / IDEs. That''s why I asked. And yes, NB supports ruby-debug-ide. Has for a couple of years. You have to have the gems installed and that can be a bit of a pain. I had to download the last, not the latest, version and install locally. Best regards, Bill -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Robert Walker
2010-Aug-25 19:39 UTC
Re: Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?
Bill Walton wrote:> You do see the test fail. Then you ''tell'' it to generate the method. > Again, it was a very brief demo. I may schedule a follow-up with the > guy to see more. The thing that was really impressive is that he > didn''t switch from one tool to another. The degree of integration of > the test tool into the development tool was like nothing I''d ever seen > before. But then I don''t spend much time reviewing editors / IDEs. > That''s why I asked. And yes, NB supports ruby-debug-ide. Has for a > couple of years. You have to have the gems installed and that can be > a bit of a pain. I had to download the last, not the latest, version > and install locally.That might be cool if it doesn''t limit your choice of testing framework. My guess would be that having something so integrated into the IDE likely locks to into whatever test framework the IDE vendor decided to use. But, if it''s flexible enough to provide choice of framework then I could see it maybe saving a few keystrokes. Not that big of a deal to me though. I mean how hard is it really to type def my_method ... end. And then likely have to move the generated method so that I keep my class files organized as I like. "If code generation is the answer, then it must have been a stupid question." -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.