moot has asked for the wisdom of the Perl Monks concerning the following question:
As part of the refactor I'm writing tests to ensure that interfaces for the system under test are detected correctly. These are obviously system-dependent.
The test suite for IO::Interface simply looks for a local loopback. What I'd like to do is somehow feed my test suite a list of expected interfaces, along with IP, broadcast, ether address, etc for each one.
Specifically, what would be the best practice for this? Seems my options are:
Seems options 1,2, and 4 are all variants of the same thing and have too many issues to be useful. Mainly, automated testing would be broken for most systems. Unless "Something Else" involves some magic of which I am unaware, then, the best course of action would be the third option. Of course, if I weren't using IO::Interface I would have to establish another solution.
So much for this specific problem, then, but it raises the general question of how to specify system-dependent information to test scripts in an automated way.
I've super-searched and googled but results were unsatisfactory, although that's probably the fault of my search terms rather than because no-one has encountered this issue before.
In the past I've managed to avoid this question by running manually all tests for which I have responsibility, and I'm therefore able to control the environment. As part of a more outward-thinking software development effort though I'd be interested to learn of any approach I may be missing. I'm sure this question must come up regularly so if there's an obvious approach I'm missing, feel free to smack me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Interface and System-dependent Testing
by kvale (Monsignor) on Apr 20, 2005 at 18:15 UTC | |
|
Re: IO::Interface and System-dependent Testing
by starbolin (Hermit) on Apr 20, 2005 at 23:00 UTC | |
by moot (Chaplain) on Apr 20, 2005 at 23:51 UTC | |
by starbolin (Hermit) on Apr 21, 2005 at 06:03 UTC |