Hi We have a Rails project using an engine which I want to run autotest with rspec against. So the project specific specs are in the specs directory but the common specs are in the specs directory of the engine plugin (e.g. vendor/plugin/engine/specs) Just wondering where I would be looking to change configuration so that autotest will also look for the specs in the engine directory? is there some way of configuring using a .autotest file? The tests_for_file method did not seem to be what I wanted in that it determines the spec to run for a file where I want to determine the files themselves? It would seem that the initialize method of the class Autotest::RailsRspec sets up where it is finding the tests, yes? And is it here that I should be looking to change? And pointers would be appreciated. Cheers Shane -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070925/8bb00e81/attachment.html
I am also running into nearly this same issue. I am using NetBeans with autotest as I am developing a new Engine Plugin. I would like the tests for the Engine to live in the plugin''s spec directory. But it seems that the only way to run the plugin specs is through rake spec:plugins. I can understand that we wouldn''t always want to have the plugin specs getting run along with the app''s specs, but in this case I do need this functionality since I am developing an Engine. Has this issue been resolved? I see that there was never any reply to it. Thanks, Lee Shane Mingins-3 wrote:> > > We have a Rails project using an engine which I want to run autotest > with rspec against. > > So the project specific specs are in the specs directory but the > common specs are in the specs directory of the engine plugin (e.g. > vendor/plugin/engine/specs) > >-- View this message in context: http://www.nabble.com/Autotest-with-RSpec-Rails-and-Engines-tp12876700p15193445.html Sent from the rspec-users mailing list archive at Nabble.com.
On Sep 25, 2007 4:16 AM, Shane Mingins <smingins at elctech.com> wrote:> > Hi > > We have a Rails project using an engine which I want to run autotest with > rspec against. > > So the project specific specs are in the specs directory but the common > specs are in the specs directory of the engine plugin (e.g. > vendor/plugin/engine/specs) > > Just wondering where I would be looking to change configuration so that > autotest will also look for the specs in the engine directory? > > is there some way of configuring using a .autotest file? The > tests_for_file method did not seem to be what I wanted in that it determines > the spec to run for a file where I want to determine the files themselves? > > It would seem that the initialize method of the class Autotest::RailsRspec > sets up where it is finding the tests, yes? And is it here that I should be > looking to change? > > And pointers would be appreciated.http://blog.davidchelimsky.net/articles/2008/01/15/rspec-1-1-2-and-zentest-3-8-0 Cheers, David> > Cheers > Shane > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Jan 30, 2008 4:16 PM, lfeistel <lfeistel at lnstar.com> wrote:> > I am also running into nearly this same issue. I am using NetBeans with > autotest as I am developing a new Engine Plugin. I would like the tests for > the Engine to live in the plugin''s spec directory. But it seems that the > only way to run the plugin specs is through rake spec:plugins. I can > understand that we wouldn''t always want to have the plugin specs getting run > along with the app''s specs, but in this case I do need this functionality > since I am developing an Engine. > > Has this issue been resolved? I see that there was never any reply to it.If you''re looking to run them using rake, just write your own rake task. If you''re looking to run them using autotest, check this out: http://blog.davidchelimsky.net/articles/2008/01/15/rspec-1-1-2-and-zentest-3-8-0 HTH, David> > Thanks, > Lee > > > > Shane Mingins-3 wrote: > > > > > > We have a Rails project using an engine which I want to run autotest > > with rspec against. > > > > So the project specific specs are in the specs directory but the > > common specs are in the specs directory of the engine plugin (e.g. > > vendor/plugin/engine/specs) > > > > > -- > View this message in context: http://www.nabble.com/Autotest-with-RSpec-Rails-and-Engines-tp12876700p15193445.html > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Thanks, your blog post was very helpful. I''ve got autotest working in my plugin. One hurdle I had to jump was that the new autotest defines an exception for vendor/plugins by default. So you can sit and define mappings all day and never get any results because the whole plugins directory is not being scanned. Once I added a RemoveException(''vendor/plugin'') to the top of my .autotest I was able to see my mappings work and moved on with fine tuning them. Lee David Chelimsky-2 wrote:> > > If you''re looking to run them using rake, just write your own rake task. > > If you''re looking to run them using autotest, check this out: > > http://blog.davidchelimsky.net/articles/2008/01/15/rspec-1-1-2-and-zentest-3-8-0 > > HTH, > David > >> >> Thanks, >> Lee >> >> >> >> Shane Mingins-3 wrote: >> > >> > >> > We have a Rails project using an engine which I want to run autotest >> > with rspec against. >> > >> > So the project specific specs are in the specs directory but the >> > common specs are in the specs directory of the engine plugin (e.g. >> > vendor/plugin/engine/specs) >> > >> > >> -- >> View this message in context: >> http://www.nabble.com/Autotest-with-RSpec-Rails-and-Engines-tp12876700p15193445.html >> Sent from the rspec-users mailing list archive at Nabble.com. >> >> _______________________________________________ >> 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 > >-- View this message in context: http://www.nabble.com/Autotest-with-RSpec-Rails-and-Engines-tp12876700p15214164.html Sent from the rspec-users mailing list archive at Nabble.com.