[Wtr-general] Need Help redirecting the Test Unit output

Paul Carvalho tester.paul at gmail.com
Tue Apr 25 11:21:05 EDT 2006


That's a fair question.  I'd like a bit more control over what output I
actually save to file.  For instance, the web app under test has frames
where some of them return the 'Access is Denied' warnings.  I'd like to weed
out all that crap.. err, noise.. and just see the test summary.

The output request was actually a requirement from my boss.  He asked to
have an output that just summarises the tests run and doesn't output
anything else unless something goes wrong.  Since I can't prevent the
'Access is Denied' warnings from appearing in the console, I'd like to find
a way to just redirect the Test Unit information to a file and ignore
everything else.

P.

On 25/04/06, Daniel Browne <browne.daniel at gmail.com> wrote:
>
> What happens if you do:
>
>     ruby iostring_test.rb > some_file.log
>
> Or to redirect STDOUT and SDTERR to the file try:
>
>     ruby iostring_test.rb > some_file.log 2>&1
>
> Cheers,
> Daniel.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060425/dff9d8af/attachment.html 


More information about the Wtr-general mailing list