|
Boost Users : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-11-08 13:44:28
"Stephen Torri" <storri_at_[hidden]> wrote in message
news:1162781444.11591.9.camel_at_base.torri.org...
> On Sun, 2006-11-05 at 00:02 -0500, Gennadiy Rozental wrote:
>> >> What exactly you want to do?
>> >
>> > I would like to print out whether a test failed or succeeded. I think
>> > that a failure message appears by default but not success.
>>
>> Doesn't "No errors detected" message appear? What component are you
>> using?
>
> The message "No errors detected" does appear. In my library I print out
> debugging messages. It would be nice to build the test with verbose
> printing so that I can see something like:
>
> Running test #1 [SUCCESS]
> Running test #2
> <Debug messages>
> <Exception message>
>
> Stephen
Using boost:1.33.1:
You could customize report formatter. Report formatter is an instance of a
class derived from boost::unit_test::results_reporter::format.
To modify report formatter use
boost::unit_test::results_reporter::set_format(
boost::unit_test::results_reporter::format* ).
Boost.Test is responsible for memory management.
Also you could use provided XML report format and apply any kind of XML
processing facility to produce desired output.
Gennadiy
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net