Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] Passing parameters to fixtures
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-09-15 09:38:05


> I guess I forgot to mention that I need to configure the fixture at
> runtime. The DB name (which is actually a connection string) is passed to
> the test as a command line parameter.
>
>
> Markus
>

Just implement in your fixture a protected member called init_db(string_type
const& db_name);

This member can be called from the suite's body, since AFAIK it derives from
it.

With Kind Regards,
Ovanes



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