[Nitro] Og tests helper
Arne Brasseur
arne at arnebrasseur.net
Mon Sep 3 13:30:59 EDT 2007
George Moschovitis schreef:
> shouldn't it say: x/all passed instead of 0 failed ?
>
I suppose it only says that when StdErr is empty, but I'll look in to it
and get back to you tomorrow. If I ever want to get accustomed to the
Taiwanese time zone I should go to sleep now.
(ab)
> -g.
>
> On 9/3/07, *Arne Brasseur* <arne at arnebrasseur.net
> <mailto:arne at arnebrasseur.net>> wrote:
>
> George Moschovitis schreef:
> > (in /home/gmosx/code/public)
> > Running og... [ 1 specs - 0 failed ]
> > Running og/store/sql... [ 1 specs - 0 failed ]
> > Running og/validation... [ 1 specs - all passed ]
> > -------------------------------------[ og
> > ]-------------------------------------
> > ExitStatus:
> > #<Process::Status: pid=13203,exited(0)>
> > StdOut:
> > Database "test" dropped
> > .
> >
> > Finished in 0.136994 seconds
> >
> > 1 example, 0 failures
> >
> > The problem seems to be that the system command used to drop the
> > database before each test. It seems to trigger the error code in
> > script/lib/wrap.rb...
> Actually the problem seems to be that some ANSI control codes (or
> something that looks like it) are sent to StdErr. Because the test
> outputs on StdErr it is shown in red and the details are given. If you
> change line 159 in script/lib/wrap.rb from
> puts "StdOut:".yellow, @stdout, "StdErr:".yellow, @stderr
> to
> puts "StdOut:".yellow, @stdout, "StdErr:".yellow, @stderr.inspect
>
> you will see this:
> -------------------------------------[ og
> ]-------------------------------------
> ExitStatus:
> #<Process::Status: pid=11423,exited(0)>
> StdOut:
> .
>
> Finished in 0.418628 seconds
>
> 1 example, 0 failures
> StdErr:
> "\e[32m\e[0m\e[32m\e[0m\e[32m\e[0m\e[32m\e[0m"
> nil
> --------------------------------[ og/store/sql
> ]--------------------------------
> ExitStatus:
> #<Process::Status: pid=11426,exited(0)>
> StdOut:
> .
>
> Finished in 0.359741 seconds
>
> 1 example, 0 failures
> StdErr:
> "\e[32m\e[0m\e[32m\e[0m\e[32m\e[0m\e[32m\e[0m"
>
>
>
> (ab)
>
>
> --
> Arne Brasseur
> http://www.arnebrasseur.net
> arne at arnebrasseur.net <mailto:arne at arnebrasseur.net>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org <mailto:Nitro-general at rubyforge.org>
> http://rubyforge.org/mailman/listinfo/nitro-general
> <http://rubyforge.org/mailman/listinfo/nitro-general>
>
>
>
>
> --
> http://www.me.gr
> http://phidz.com
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr
> http://nitroproject.org
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
--
Arne Brasseur
http://www.arnebrasseur.net
arne at arnebrasseur.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070904/de5334ae/attachment.html
More information about the Nitro-general
mailing list