Re: Network connection
[email protected] (Chad Granum) Sun, 12 Nov 2017 07:03:39 -0800
| Newsgroups | perl.cpan.workers |
|---|---|
| Message-ID | <CAJFr3ksD3qkSjza8opk8OMvcv3baTneT+iLOU4Ur-aG1aH8rWg@mail.gmail.com> |
--001a11478446858067055dca755a Content-Type: text/plain; charset="UTF-8" I personally would make it an author test that requires the AUTHOR_TESTING env var. I have apent too much time debugging network tests that fail because a file moved, a domain was down/expired, or the connection was not sufficient, but present. There are also corperate/school blacklists/whitelists. Any number of things outside your control. Run the test for release, but do not aubject evertone to these uncontrollable failure cases. On Nov 12, 2017 7:00 AM, "James E Keenan" <[email protected]> wrote: > Is there any code which is considered "best practice" for "skip_all unless > I have an Internet connection"? > > For the first time I want to write a library whose tests will benefit from > connection to an FTP server. If there is some code that I could just drop > in for situations where the test suite is run offline, that would be > helpful. > > Thank you very much. > Jim Keenan > --001a11478446858067055dca755a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I personally would make it an author test that requires t= he AUTHOR_TESTING env var.<div dir=3D"auto"><br></div><div dir=3D"auto">I h= ave apent too much time debugging network tests that fail because a file mo= ved, a domain was down/expired, or the connection was not sufficient, but p= resent. There are also corperate/school blacklists/whitelists. Any number o= f things outside your control.</div><div dir=3D"auto"><br></div><div dir=3D= "auto">Run the test for release, but do not aubject evertone to these uncon= trollable failure cases.</div></div><div class=3D"gmail_extra"><br><div cla= ss=3D"gmail_quote">On Nov 12, 2017 7:00 AM, "James E Keenan" <= <a href=3D"mailto:[email protected]">[email protected]</a>> wrote:<br ty= pe=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any code which i= s considered "best practice" for "skip_all unless I have an = Internet connection"?<br> <br> For the first time I want to write a library whose tests will benefit from = connection to an FTP server.=C2=A0 If there is some code that I could just = drop in for situations where the test suite is run offline, that would be h= elpful.<br> <br> Thank you very much.<br> Jim Keenan<br> </blockquote></div></div> --001a11478446858067055dca755a--