I'm using Boost.Test with Xcode to test my C++ program. There are several ways to do so.
Test each class separately. That is, I should start multiple projects, one project for each class. Boost should provide the
main()
.I should use my own
main()
written using Boost.Program_Options. A test option should be added and when invoked all functions other thanmain()
will be tested.
I'm new to Boost.Test. Which option is better?