Marcelo de Moraes Serpa
2008-Nov-19 03:18 UTC
[rspec-users] Extending the autotest discover rules
Hello, We are creating tests for presenters (presenter pattern) classes. We are putting the implementation classes in app/presenters and we thought on putting the specs in spec/presenters. Question is, how could I extend the autotest discover rules so that it will also monitor the presenter classes and run its correspondent tests when any of them changes? Thanks, Marcelo. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081119/e3c74276/attachment.html>
On Tue, Nov 18, 2008 at 9:18 PM, Marcelo de Moraes Serpa <celoserpa at gmail.com> wrote:> Hello, > > We are creating tests for presenters (presenter pattern) classes. We are > putting the implementation classes in app/presenters and we thought on > putting the specs in spec/presenters. Question is, how could I extend the > autotest discover rules so that it will also monitor the presenter classes > and run its correspondent tests when any of them changes?What you are talking about is not discovery, but mapping. Please see the autotest doco at http://zentest.rubyforge.org/ZenTest/classes/Autotest.html. Cheers, David> > Thanks, > > Marcelo. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Marcelo de Moraes Serpa
2008-Nov-19 03:55 UTC
[rspec-users] Extending the autotest discover rules
Thanks David, I added a .autotest file in my project root path and the new mapping. It worked like a charm! Marcelo. On Wed, Nov 19, 2008 at 1:34 AM, David Chelimsky <dchelimsky at gmail.com>wrote:> On Tue, Nov 18, 2008 at 9:18 PM, Marcelo de Moraes Serpa > <celoserpa at gmail.com> wrote: > > Hello, > > > > We are creating tests for presenters (presenter pattern) classes. We are > > putting the implementation classes in app/presenters and we thought on > > putting the specs in spec/presenters. Question is, how could I extend the > > autotest discover rules so that it will also monitor the presenter > classes > > and run its correspondent tests when any of them changes? > > What you are talking about is not discovery, but mapping. Please see > the autotest doco at > http://zentest.rubyforge.org/ZenTest/classes/Autotest.html. > > Cheers, > David > > > > > > Thanks, > > > > Marcelo. > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081119/09ae7c60/attachment.html>
On Tue, Nov 18, 2008 at 9:55 PM, Marcelo de Moraes Serpa <celoserpa at gmail.com> wrote:> Thanks David, I added a .autotest file in my project root path and the new > mapping. It worked like a charm!Thank Ryan for offering a nice API to manage it - I just pointed you to the docs :) Cheers, David> > Marcelo. > > On Wed, Nov 19, 2008 at 1:34 AM, David Chelimsky <dchelimsky at gmail.com> > wrote: >> >> On Tue, Nov 18, 2008 at 9:18 PM, Marcelo de Moraes Serpa >> <celoserpa at gmail.com> wrote: >> > Hello, >> > >> > We are creating tests for presenters (presenter pattern) classes. We are >> > putting the implementation classes in app/presenters and we thought on >> > putting the specs in spec/presenters. Question is, how could I extend >> > the >> > autotest discover rules so that it will also monitor the presenter >> > classes >> > and run its correspondent tests when any of them changes? >> >> What you are talking about is not discovery, but mapping. Please see >> the autotest doco at >> http://zentest.rubyforge.org/ZenTest/classes/Autotest.html. >> >> Cheers, >> David >> >> >> > >> > Thanks, >> > >> > Marcelo. >> > >> > _______________________________________________ >> > rspec-users mailing list >> > rspec-users at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/rspec-users >> > >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >