Boost logo

Boost Users :

From: Hubert Holin (yg-boost-users_at_[hidden])
Date: 2003-03-05 05:40:43


Somewhere in the E.U., le 05/03/2003

    Bonjour

        I suspect that what you need is to allow the messages to appear
in the console, which can be brought about by typing the following
before the creation of the test_unit (that's the way I mage it work for
me, at least):

::boost::unit_test_framework::unit_test_log::instance().set_log_threshold
_level_by_name("messages");

    Bon courage

            Hubert Holin

In article <b3qv7c+qfks_at_[hidden]>,
 "paul_snively <paul_snively_at_[hidden]>" <paul_snively_at_[hidden]>
 wrote:

> Folks,
>
> I'd like to be able to run a boost unit test, e.g. is_convertible_test.cpp,
> as kind of a one-shot apart from having to deal with the rest of boost. So I
> read the documentation on the unit test framework, and it seems like this
> should be relatively straightforward. I've created a Carbon Console project
> in Codewarrior, which contains the following files:
>
> is_convertible_test.cpp
> init.cpp (from type_traits/test)
> unit_test_main.cpp
> unit_test_suite.cpp
> unit_test_result.cpp
> unit_test_log.cpp
> unit_test_monitor.cpp
> execution_monitor.cpp
> unit_test_parameters.cpp
> test_tools.cpp
>
> This all compiles and links file, which is a relief in and of itself. :-)
>
> However, when I simply run the app, I get "*** No errors detected". If I
> remove is_convertible_test.cpp and rebuild and run again, I get the same
> result. :-) So my suspicion is that I need to do more to let the framework
> know that it needs to run is_convertible_test.cpp. Can someone please clue me
> in as to what that is, in minimal terms?
>
> Thanks!
>
>
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


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