hi, When running rails spec tests is there a log file generated? i''m looking for generated sql to help me debug like in development.log or is there a way to run the test against a webrick server so i can see logs? (i''m not running with spec_server at the moment, it doesnt seem to work well with autotest) thanks linoj
On 5/23/07, Jonathan Linowes <jonathan at parkerhill.com> wrote:> hi, > > When running rails spec tests is there a log file generated? i''mYou can specify what kind of output you want on RSpec''s command line. See spec --help for details. For example, you can do: spec --format specdoc:path/to/myfile.txt pat/to/my/specs I''m not sure how to tell autotest to give special command line options to the spec command though. Aslak> looking for generated sql to help me debug like in development.log > > or is there a way to run the test against a webrick server so i can > see logs? > > (i''m not running with spec_server at the moment, it doesnt seem to > work well with autotest) > > thanks > > linoj > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 5/23/07, Jonathan Linowes <jonathan at parkerhill.com> wrote:> When running rails spec tests is there a log file generated? i''m > looking for generated sql to help me debug like in development.logHave you looked in log/test.log? I occasionally clear it out and then run all of the non-model specs, then grep through it for SQL, to enforce our "no DB access from non-model specs" rule. -- Nick
On 5/23/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:> On 5/23/07, Jonathan Linowes <jonathan at parkerhill.com> wrote: > > hi, > > > > When running rails spec tests is there a log file generated? i''m > > You can specify what kind of output you want on RSpec''s command line. > See spec --help for details. For example, you can do: > > spec --format specdoc:path/to/myfile.txt pat/to/my/specs > > I''m not sure how to tell autotest to give special command line options > to the spec command though.You''ll have to read the ZenTest docs for details, but the high level is that you can add hooks in a .autotest file in the root of your rails project that tell autotest what command to use, what examples to run when certain files get changed, etc.> > Aslak > > > looking for generated sql to help me debug like in development.log > > > > or is there a way to run the test against a webrick server so i can > > see logs? > > > > (i''m not running with spec_server at the moment, it doesnt seem to > > work well with autotest) > > > > thanks > > > > linoj > > > > _______________________________________________ > > 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 >