Greg Hauptmann
2008-Nov-11 23:16 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
Hi, Does anyone know what exactly trigger autospec to rerun tests? I ask as I have a model file that has spec tests for it, but I''ve noticed when I fix the line in the model file it''s not automatically retriggering a retest (where I''d expect to see a pass whereas before it was a fail). If I close autospec & restart it then it gives the pass. Thanks
David Chelimsky
2008-Nov-12 00:46 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
On Tue, Nov 11, 2008 at 5:16 PM, Greg Hauptmann <greg.hauptmann.ruby at gmail.com> wrote:> Hi, > > Does anyone know what exactly trigger autospec to rerun tests? > > I ask as I have a model file that has spec testsPlease don''t say "spec tests" lest you desire being banned from the list. Choose any of "specs," "tests" or even "rspec tests" but "spec tests" is like nails on a chalkboard to my eyes :)> for it, but I''ve > noticed when I fix the line in the model file it''s not automatically > retriggering a retest (where I''d expect to see a pass whereas before > it was a fail). If I close autospec & restart it then it gives the > pass.autospec is a thin wrapper around autotest, so the issue is one of autotest mappings. What are the actual filenames and what directories are they in?> > Thanks > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Greg Hauptmann
2008-Nov-12 01:01 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
tks David - the files are: * app/models/recurring/projections.rb <== one I was changing & not always triggering a retest * spec/models/projections/projections_spec.rb <== where the associated tests are tks On Wed, Nov 12, 2008 at 10:46 AM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Tue, Nov 11, 2008 at 5:16 PM, Greg Hauptmann > <greg.hauptmann.ruby at gmail.com> wrote: >> Hi, >> >> Does anyone know what exactly trigger autospec to rerun tests? >> >> I ask as I have a model file that has spec tests > > Please don''t say "spec tests" lest you desire being banned from the > list. Choose any of "specs," "tests" or even "rspec tests" but "spec > tests" is like nails on a chalkboard to my eyes :) > >> for it, but I''ve >> noticed when I fix the line in the model file it''s not automatically >> retriggering a retest (where I''d expect to see a pass whereas before >> it was a fail). If I close autospec & restart it then it gives the >> pass. > > autospec is a thin wrapper around autotest, so the issue is one of > autotest mappings. > > What are the actual filenames and what directories are they in? > >> >> Thanks >> _______________________________________________ >> 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 >
Mark Wilden
2008-Nov-12 01:22 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
On Tue, Nov 11, 2008 at 5:01 PM, Greg Hauptmann < greg.hauptmann.ruby at gmail.com> wrote:> > * app/models/recurring/projections.rb <== one I was changing & not > always triggering a retest > * spec/models/projections/projections_spec.rb <== where the associated > tests are >The model and the spec are in different subdirectories under app and spec. ///ark -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081111/1a877673/attachment.html>
Greg Hauptmann
2008-Nov-12 02:00 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
thanks - this seemed to fix it wonder why it was working for the first time run (i.e. tests were working) but just not re-triggering? just the way autotest works I guess On Wed, Nov 12, 2008 at 11:22 AM, Mark Wilden <mark at mwilden.com> wrote:> On Tue, Nov 11, 2008 at 5:01 PM, Greg Hauptmann > <greg.hauptmann.ruby at gmail.com> wrote: >> >> * app/models/recurring/projections.rb <== one I was changing & not >> always triggering a retest >> * spec/models/projections/projections_spec.rb <== where the associated >> tests are > > The model and the spec are in different subdirectories under app and spec. > > ///ark > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
David Chelimsky
2008-Nov-12 02:05 UTC
[rspec-users] what triggers "./script/autospec" to kick in? when I change my model it doesn''t always retest
On Tue, Nov 11, 2008 at 8:00 PM, Greg Hauptmann <greg.hauptmann.ruby at gmail.com> wrote:> thanks - this seemed to fix it > > wonder why it was working for the first time run (i.e. tests were > working) but just not re-triggering? just the way autotest works I > guessThe first time it loads everything in the spec directory, or spec/models if you type ''rake spec:models'' etc etc etc After that it looks at changes and looks to the mappings to know what to do.> > On Wed, Nov 12, 2008 at 11:22 AM, Mark Wilden <mark at mwilden.com> wrote: >> On Tue, Nov 11, 2008 at 5:01 PM, Greg Hauptmann >> <greg.hauptmann.ruby at gmail.com> wrote: >>> >>> * app/models/recurring/projections.rb <== one I was changing & not >>> always triggering a retest >>> * spec/models/projections/projections_spec.rb <== where the associated >>> tests are >> >> The model and the spec are in different subdirectories under app and spec. >> >> ///ark >> >> _______________________________________________ >> 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 >