PROTECTED]>
To: python-list@python.org
Subject: Re: why don't many test frameworks support file-output?
Date: Fri, 24 Feb 2006 07:43:20 -0800
kanchy kang wrote:
>
> I don't think redirecting stdout to a file is a good resolution.
Nobody is suggesting:
python program.py &g
kanchy kang wrote:
>
> I don't think redirecting stdout to a file is a good resolution.
Nobody is suggesting:
python program.py >output
or
program.py >output
What is being suggested is:
import sys
import module
original, sys.stdout = sys.stdout, open('output', 'w')
t
kanchy kang wrote:
> i browsed the following frameworks briefly: nose, OOBTest,
> testosterone, py.test, Sancho ... and found out they do support
> imediate screen-output only.
Look at TextTest.
--
http://mail.python.org/mailman/listinfo/python-list
ng...sometimes the previous log
information would be useful.
...hehe...
best regards.
>From: Benji York <[EMAIL PROTECTED]>
>To: kanchy kang <[EMAIL PROTECTED]>
>CC: python-list@python.org
>Subject: Re: why don't many test frameworks support file-output?
>Date: Th
kanchy kang wrote:
> i browsed the following frameworks briefly: nose, OOBTest,
> testosterone, py.test, Sancho ... and found out they do support
> imediate screen-output only.
You can redirect stdout to a file.
--
Benji York
--
http://mail.python.org/mailman/listinfo/python-list
kanchy kang wrote:
> i browsed the following frameworks briefly: nose, OOBTest,
> testosterone, py.test, Sancho ... and found out they do support
> imediate screen-output only.
unittest.TextTestRunner() has an optional stream argument that would let
you output to a file.
Kent
--
http://mail.p
kanchy kang wrote:
> i browsed the following frameworks briefly: nose, OOBTest,
> testosterone, py.test, Sancho ... and found out they do support
> imediate screen-output only.
http://testoob.sourceforge.net/features.html
Note the section on XML output. If you need it in a file, then you can use
i browsed the following frameworks briefly: nose, OOBTest,
testosterone, py.test, Sancho ... and found out they do support imediate
screen-output only.
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.cl