Re: Tests needing user parameters

2005-10-20 Thread Jess Robinson
On Wed, 19 Oct 2005, Ken Williams wrote: On Oct 19, 2005, at 4:50 PM, Jess Robinson wrote: My module will login to a web service and manipulate data programmatically.. Nothing critical I assure you, just a tool ;) Since theres no dummy/test account that I know of, I'll need the users

Re: Tests needing user parameters

2005-10-20 Thread Jess Robinson
On Wed, 19 Oct 2005, Spencer Ogden wrote: Requiring user input for testing is probably not a good idea. All of the sudden you now have to validate the input data as well before you can test your own code. Then you need to test you validation code, etc. This article may suggest a solution:

Re: Tests needing user parameters

2005-10-20 Thread David Landgren
Jess Robinson wrote: On Wed, 19 Oct 2005, Ken Williams wrote: On Oct 19, 2005, at 4:50 PM, Jess Robinson wrote: My module will login to a web service and manipulate data programmatically.. Nothing critical I assure you, just a tool ;) Since theres no dummy/test account that I know of,

Re: Tests needing user parameters

2005-10-20 Thread A. Pagaltzis
* David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: Jess Robinson wrote: Right, I'd seen a few modules do this, but.. Is there a *standard* way of doing it? Those Makefile.PLs tend to look cluttered and confusing IMO.. a nice: use Test::Auth; get_user_fields(user, password); would

Re: Tests needing user parameters

2005-10-20 Thread Paul Johnson
On Thu, Oct 20, 2005 at 10:29:10AM +0200, David Landgren wrote: If there's a standard way of doing it, it would be really nice that it understood when it was being run in a smoke environment, and asked no questions and used built-in defaults. May I just add an AOL here? It would be very

Re: Tests needing user parameters

2005-10-20 Thread David Landgren
A. Pagaltzis wrote : * David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: [...] If there's a standard way of doing it, it would be really nice that it understood when it was being run in a smoke environment, and asked no questions and used built-in defaults. That’s exactly what EU::MM’s

Re: Tests needing user parameters

2005-10-20 Thread Jess Robinson
On Thu, 20 Oct 2005, A. Pagaltzis wrote: * David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: Jess Robinson wrote: Right, I'd seen a few modules do this, but.. Is there a *standard* way of doing it? Those Makefile.PLs tend to look cluttered and confusing IMO.. a nice: use

Re: Tests needing user parameters

2005-10-20 Thread Barbie
Quoting David Landgren [EMAIL PROTECTED]: A. Pagaltzis wrote : * David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: [...] If there's a standard way of doing it, it would be really nice that it understood when it was being run in a smoke environment, and asked no questions and used

Re: Tests needing user parameters

2005-10-20 Thread David Landgren
A. Pagaltzis a écrit : * David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: [...] If there's a standard way of doing it, it would be really nice that it understood when it was being run in a smoke environment, and asked no questions and used built-in defaults. That’s exactly what

Re: Tests needing user parameters

2005-10-20 Thread Ken Williams
On Oct 20, 2005, at 6:14 AM, Jess Robinson wrote: On Thu, 20 Oct 2005, A. Pagaltzis wrote: * David Landgren [EMAIL PROTECTED] [2005-10-20 10:30]: Jess Robinson wrote: Right, I'd seen a few modules do this, but.. Is there a *standard* way of doing it? Those Makefile.PLs tend to look

Re: Tests needing user parameters

2005-10-20 Thread Sam Vilain
On Wed, 2005-10-19 at 21:51 +0100, Jess Robinson wrote: Hey folks, I'm writing a module which will need user account data for it's tests, and I'm wondering if theres a standard way (or module) for doing this.. Else I'll guess I'll look for environment variables and otherwise not test,

Tests needing user parameters

2005-10-19 Thread Jess Robinson
Hey folks, I'm writing a module which will need user account data for it's tests, and I'm wondering if theres a standard way (or module) for doing this.. Else I'll guess I'll look for environment variables and otherwise not test, any ideas? Jess

Re: Tests needing user parameters

2005-10-19 Thread Tim Maher
On Wed, Oct 19, 2005 at 09:51:12PM +0100, Jess Robinson wrote: Hey folks, I'm writing a module which will need user account data for it's tests, and I'm wondering if there's a standard way (or module) for doing this.. What do you mean by user account data? Perhaps UNIX/Linux UIDs and

Re: Tests needing user parameters

2005-10-19 Thread Mark Stosberg
On Wed, Oct 19, 2005 at 10:50:04PM +0100, Jess Robinson wrote: I'm writing a module which will need user account data for it's tests, and I'm wondering if there's a standard way (or module) for doing this.. What do you mean by user account data? Perhaps UNIX/Linux UIDs

Re: Tests needing user parameters

2005-10-19 Thread psema4
On 10/19/05, Mark Stosberg [EMAIL PROTECTED] wrote: On Wed, Oct 19, 2005 at 10:50:04PM +0100, Jess Robinson wrote: I'm writing a module which will need user account data for it's tests, and I'm wondering if there's a standard way (or module) for doing this.. What do you

Re: Tests needing user parameters

2005-10-19 Thread psema4
On 10/19/05, psema4 [EMAIL PROTECTED] wrote: My module will login to a web service and manipulate data programmatically.. Nothing critical I assure you, just a tool ;) Since theres no dummy/test account that I know of, I'll need the users account/email address and password to login.

Re: Tests needing user parameters

2005-10-19 Thread Ken Williams
On Oct 19, 2005, at 4:50 PM, Jess Robinson wrote: My module will login to a web service and manipulate data programmatically.. Nothing critical I assure you, just a tool ;) Since theres no dummy/test account that I know of, I'll need the users account/email address and password to login.