3 ms·
IIRC, the correct protocol with network testing is to prompt the user first that it's going to connect to another host, so they can skip the tests if there's so
by cytzol 14y ago
IIRC, the correct protocol with network testing is to prompt the user first that it's going to connect to another host, so they can skip the tests if there's something wrong with their network (or the site on the other end).
The other way to do it is to start an HTTP server locally and use that (which is what WWW::Mechanize does)
- jleader 14y agoPrompting the user seems like a bad thing for an automated test to do! The whole point of automating tests is so you can run them unattended: at install time, or under a continuous integration system after code check-ins, or for git pickaxe to find which change caused a bug, or whenever else you want to confirm that a whole lot of code still works as intended.