I am trying to use boost-test, and in particular boost unit testing.
I clearly don't understand how is the main function generated and called, all the tutorial says is to define a module and write a test
#define BOOST_TEST_MODULE EnfTraderTest
BOOST_AUTO_TEST_CASE(CalculateExpectedPriceTest){BOOST_ERROR("Oops");}
But, how do I say to my program to run this test ? I already have main function, I would like to decide to run the test or not, from my main function.