Ports and Adapters

Ports-and-adapters[15] is a software architecture that encourages you to separate the core functionality of your application from any external boundaries or services.

A port or adapter is typically an external service like a web server, but it could equally be a call to any external service, or even the input stream from your keyboard. Anything that is an input or an output to your system could be a candidate.

The beauty of thinking about your software this way is it lets you take a much more black box–style approach to your testing. Instead of aggressively testing all the internals of your systems (and coupling everything together), you stick to the surface and instead focus more on the inputs and outputs.

Kind of, yes. Think ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.