Hi *, I have a few modules in lib/ and I use them mostly in my models. I''d like to add a few unit tests and run them with rake with all other tests of my app: where do I have to write them ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/b5f8a738/attachment.html
Just follow naming conventions and throw them into the test/unit directory. Nicholas Wieland wrote:> Hi *, I have a few modules in lib/ and I use them mostly in my models. > I''d like to add a few unit tests and run them with rake with all other > tests of my app: where do I have to write them ? > > TIA, > ngw > -- > Nicholas Wieland > nicholas_wieland@yahoo.it <mailto:nicholas_wieland@yahoo.it> > > > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/c388409a/attachment.html
Il giorno 17/ago/06, alle ore 19:29, Todd Makinster ha scritto:> Just follow naming conventions and throw them into the test/unit > directory.Sorry, I don''t think I''m following you :) What naming conventions ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060818/4abadf69/attachment.html
I found that by naming them something_test.rb (and placing them in the test/unit directory as previously mentioned) the rake test:units task picked them up just fine. On 8/18/06, Nicholas Wieland <nicholas_wieland@yahoo.it> wrote:> > Il giorno 17/ago/06, alle ore 19:29, Todd Makinster ha scritto: > > Just follow naming conventions and throw them into the test/unit > directory. > > Sorry, I don''t think I''m following you :) > What naming conventions ? > > TIA, > ngw > -- > Nicholas Wieland > nicholas_wieland@yahoo.it > <http://lists.rubyonrails.org/mailman/listinfo/rails>-- Jim Kane fastjames@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060818/21084a72/attachment.html
Jim is correct. Sorry I was so terse...should have explained myself better. Jim Kane wrote:> I found that by naming them something_test.rb (and placing them in the > test/unit directory as previously mentioned) the rake test:units task > picked them up just fine. > > On 8/18/06, * Nicholas Wieland* <nicholas_wieland@yahoo.it > <mailto:nicholas_wieland@yahoo.it>> wrote: > > Il giorno 17/ago/06, alle ore 19:29, Todd Makinster ha scritto: > >> Just follow naming conventions and throw them into the test/unit >> directory. > > Sorry, I don''t think I''m following you :) > What naming conventions ? > > TIA, > ngw > -- > Nicholas Wieland > nicholas_wieland@yahoo.it <mailto:nicholas_wieland@yahoo.it> > > > -- > Jim Kane > fastjames@gmail.com <mailto:fastjames@gmail.com> > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060818/359f6d2c/attachment-0001.html