From: vasudevram Date: 2007-08-09T01:34:59+09:00 Subject: Re: HTML test output? On Aug 8, 9:20 am, Mark Slater wrote: > The other thing I've been looking for is a way to output the Ruby > unit test results to the console and to an XML log file. I found a > reference to the test-report gem, but it seems to have gone away. Has > something taken its place and I've just been unable to find it? Or am > I stuck writing my own? > > Thanks again, > > Mark Don't get what you mean by an "XML log file" - and why XML? for further parsing of the log results? Anyway, if on Linux, getting the output both on the console and in a file (as long as the format wanted in both is the same) is easy: your_test_command | tee log_filename That uses the Linux tee command (nice name, huh?) to make a copy of its input both on stdout and to the given filename. And if you're on Windows and need it badly enough, install Cygwin to be able to use tee there too. Note: Cygwin may be a little unstable (as per what I've heard from friends) and _may_ (I don't say will) crash in some way. Caveat user ... Vasudev Ram Dancing Bison Enterprises Biz site: http://www.dancingbison.com PDF creation/construction toolkit: http://sourceforge.net/projects/xtopdf Blog: http://jugad.livejournal.com