YAPC::Europe 2013 in Kiev

YAPC::Europe 2013 “Future Perl”

Twitter #ye2013    Facebook    RSS       Log in

Twitter #ye2013    Facebook    RSS       Log in

Making it easier to test network client code by mocking LWP request()

By Jason Clifford from London.pm
Lightning talk
Target audience: Beginner
Language: English


I was recently part of a team writing a new client to a network service which required tests across multiple layers of client code.

We needed a simple way to mock an arbitrary number of responses from the service so our tests would validate our code rather than the network.

Last night I decided to write something similar but a little more configurable.