in reply to Flickr OAuth module and testing
Anyone has a better solution?
There are a few options :) 1) launch a local oath server against which to authenticate
2) mock the server calls (fake them)
3) skip tests unless the user specifies (thus gives permission) the following vars/args: $ENV{PERL_YOURDISTNAME_OAUTH_USER} and $ENV{PERL_YOURDISTNAME_OAUTH_PASSWORD} (or equivalent perl Makefile.PL PERL_YOURDISTNAME_OAUTH_PASSWORD=...
4) prompt of ExtUtils::MakeMaker the user if not $ENV{AUTOMATED_TESTING}
Those are really your only options, unless flickr has an account specifically setup for testing environment, then you'd prompt the user to run network tests
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Flickr OAuth module and testing
by CountZero (Bishop) on May 21, 2015 at 09:10 UTC |