Boost Test - Customize output.

View: New views
2 Messages — Rating Filter:   Alert me  

Boost Test - Customize output.

by mik-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm using Boost::Test to build a regression test of a library and it's working well. But I'd like to customize the output.
For example, I get:

c:/REPOSI~1/Stable/pdglib/libs/forex/OPTION~1/test/src/option_test_case.cpp(83): error in "option_test_case::regression": american (38) - reference lib (foreign_rho): -1.#IND new lib (foreign_rho): 0

The information about the file and number of line are unnecessary. 

How can I suppress it?
And is it possible to customize the final report too?

Thank you,
   Mirko Cambi


_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: Boost Test - Customize output.

by Gennadiy Rozental-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mik <mirko.cambi <at> gmail.com> writes:
> The information about the file and number of line are unnecessary. 
>
> How can I suppress it?

You can implement your own log formatter. Follow an example inside Boost.Test or
even better just inherit from it and tweak what you need.

> And is it possible to customize the final report too?

The same here. Implement custom report formatter and register it

Gennadiy

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users