Boost logo

Boost Testing :

Subject: [Boost-testing] FR:Add -log_file and -report_file command line options to boost.test
From: hhowe (hh29junk_at_[hidden])
Date: 2012-09-05 19:59:32

The current behavior of boost.test is to write the report text to stderr, and
the log to stdout. It would be handy to have command line options for
writing directly to files, rather than messing with stderr and stdout

I am running into problems creating an xml report from my test that will be
consumed by our CI build server (jenkins). I pipe my report with 2>. That
works, but other stderr logging invalidates the xml. My tests exercise code
from libraries that write to stderr when I pass them bogus input. But my
tests intentionally pass them bogus input, so I end up with raw error
messages in my xml file. That invalidates the xml file, and I can't consume
it from jenkins.

I have options for working around this, like quieting the library I am
using, or putting some code into my test main to alter how the logging and
reporting work. But it would just be really slick if I could configure this
out of the box from the command line.


View this message in context:
Sent from the Boost - Testing mailing list archive at

Boost-testing list run by mbergal at