Context variables for test databases
nathan at auryn.com
nathan at auryn.com
Thu Jun 11 00:36:04 UTC 2009
Hi,
I'm wondering if QMTest has any way to pass context variables (or something similar) to test databases so that the test databases can use these values while figuring out what tests they contain. Basically, I'd like to pass parameters to databases at load time rather than at creation time.
The use case I'm thinking of here is using shared libraries, which are built from my own code, as test databases (specifically, I'd like to use CppUnit test DLLs). The problem is that, at least in the build system I'm currently using, the shared libraries won't be in one fixed location that can be hard coded into a test database when it is created. Instead, they could be in pretty much arbitrary locations based on things like the build configuration, build directory location, install directory location, etc.
What I would like to be able to do is to pass something like a binary path to QMTest that test databases could use to find the shared libraries. However, the only way I can think of to do this right now is to use environment variables.
Is there a feature I've missed that would allow for this use case? Or some way to achieve the same thing using a different method?
Thanks in advance,
Nathan LeZotte.
More information about the qmtest
mailing list