Message151409
> R. David Murray <rdmurray@bitdance.com> added the comment:
>
> Meaning you want to run the same test suite with a variety of
> different DB connections? That seems like a reasonable use
> case.
This is for external parameterization of a test to run in a
different environment. Internal reuse of test code is usually
better done inside of the code using standard OOP approaches.
The different in database connections is due to wanting to run
the tests on different systems with different database users,
passwords and database names. Normally we have an object that
reads this information from file specified on the command line,
the object is passed to code that creates the connections.
A similar problem exists when tests must be run against a server
and require a host name. External parameterization to specify
the host name is required.
While it's certainly possible to come up with says to pass this
setting things in globals (including environment variable), this
does lead to confusing code.
Mark |
|
Date |
User |
Action |
Args |
2012-01-16 21:06:45 | diekhans | set | recipients:
+ diekhans, terry.reedy, exarkun, ncoghlan, pitrou, ezio.melotti, eric.araujo, r.david.murray, michael.foord, brian.curtin, fperez, Yaroslav.Halchenko, nchauvat, abingham, eric.snow, pere.martir |
2012-01-16 21:06:45 | diekhans | link | issue12600 messages |
2012-01-16 21:06:45 | diekhans | create | |
|