Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-03-28 00:00:20


"Kevin Wheatley" <hxpro_at_[hidden]> wrote in message
news:44285016.667649CC_at_cinesite.co.uk...
>I was just wondering if there is an option to generate an
> error/warning if a test function called by the test library does no
> 'asserts' (or any of the BOOST_* test tools).

There is not. I could consider addiing this feature post release. Why do you
need this?

> BOOST_AUTO_TEST_CASE( construct_default_object )
> {
> CSVFileReader defaultObject;
> boost::ignore_unused_variable_warning(defaultObject);
> }
>
> I'd like to say I don't see any asserts here, and would like a
> warning, or at least to note that I did not call an assert. In fact it
> looks like BOOST_AUTO_TEST_CASE() is adding an additional test to all
> of my test cases. Is this by design?

This is not the case anymore.

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