www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14938] New: std.net.curl tests should use localhost or stub

https://issues.dlang.org/show_bug.cgi?id=14938

          Issue ID: 14938
           Summary: std.net.curl tests should use localhost or stub any
                    networking
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Test coverage for std.net.curl is pretty bad b/c the network tests aren't run
regularly. The main reason is that they actually request remote hosts (there is
even a test app running on d-lang.appspot.com).
It would be much better to either stub curl for the unittests or at least use a
localhost server (could be a simply as a TCP listener logging the requests for
and fed with responses by the test).

--
Aug 19 2015