in reply to Testing CPAN module that requires credentials
I have some tests in modules that require user input. I put them in a test.pl file so that tests won't fail with auto build processes (like that of Activestate's PPM) but also allow the user to supply information if they want to run the full test suite.
Have a look at the test.pl script in the Cisco::Management module for example. The test.pl script asks for a router IP address and SNMP community strings to run the full set of tests. Pressing just enter skips the suite entirely. That may be a way to go - put your regular tests in a file and the ones that require authentication - put them in a test file that prompts the user for input (their own credentials) or allows them to skip the tests.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing CPAN module that requires credentials
by Marseille07 (Acolyte) on Jan 07, 2012 at 20:44 UTC | |
by DrHyde (Prior) on Jan 10, 2012 at 10:10 UTC | |
by Anonymous Monk on Jan 10, 2012 at 10:29 UTC |