Boost Users :
Subject: Re: [Boost-users] boost unit tests and command line args
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-05-12 23:32:03
Zachary Turner wrote:
> I have some unit tests that all use BOOST_AUTO_TEST_CASE. Is there a
> way for me to hook into the main function before any of my test cases
> are run to perform initialization, involving the command line arguments
> that were passed to the executable? Currently there is no main
> function, it's defined inside the boost headers, and I don't see an
> obvious way of hooking into it.
You can use global fixture. Command line arguments are available through
the master test suite. All Boost.Test specific CLAs are going to be
removed by this time.
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