Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Test: How to create a multi-module (multi-file) test suite or how to link multiple auto test cases into one executable?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-02-22 14:48:40


Leonid Shlyapnikov <lshlyapnikov <at> gmail.com> writes:

> file: ATest.cppp:
> -----------------------------------------------------------------------
> #define BOOST_TEST_MODULE ATest

> file: BTest.cppp:
> -----------------------------------------------------------------------
> #define BOOST_TEST_MODULE BTest

1. BOOST_TEST_MODULE has to be defined once per test module, not once per test
file. This is the name of whte test module

> #include <boost/test/included/unit_test.hpp>

2. You can't use single header variant of UTF and expect it to work in
multi-file case. You can read more about it in docs. You have t use once of the
library based usage variants.

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