Boost logo

Boost Users :

Subject: [Boost-users] Boost.Test : Project setting in Visual 2010
From: Oodini (svdbg_at_[hidden])
Date: 2013-04-04 04:55:59


Hello,

I am trying to setup in Visual C++ 2010 some projects to use Boost.Test.

I have a project with some classes I want to test. This project builds a static library. I put in this project a test file ; here is its content :

#define BOOST_TEST_MODULE MyTest
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE(Test1)
{
    BOOST_REQUIRE(false);
}

I created an other project (a console program). Its content is :

#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

In its properties, I linked it to the first project, trough Common Properties -> Framework and references.

When I execute this program, I get the message "test tree is empty".

How should I setup me projects ? I can't find clear documentation about this subject.

Thanks a lot.


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