article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

Bad tests are a sign of bad design, so some people use techniques such as Hexagonal Architecture and functional core, imperative shell to separate logic from infrastructure. Infrastructure is code that involves external systems or state.) It depends on Rot13 , a Logic class, and CommandLine , an Infrastructure class.

Testing 138
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

When programmers use test-driven development (TDD), the code they test interacts with other parts of the system that aren't being tested. Infrastructure Patterns. Infrastructure Wrappers. Nullable Infrastructure. Some code needed for the tests is written as tested production code, particularly for infrastructure classes.

Testing 88
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

DOCSIS® Network vs. Fiber BackHaul for Outdoor Small Cells: How Larger Footprint of DOCSIS Networks Lowers TCO in the Outdoor Use Case

CableLabs

Site acquisition/preparation/construction/powering. Secondly, leveraging existing cable infrastructure, and in particular aerial plant i.e., cable strands, that takes out a lot of steps (and cost) from the small cell deployment process. will also be able to achieve the stringent phase precision as required in LTE TDD/5G networks.

Network 43
article thumbnail

Testing a Koa application with supertest using async/await

Marcusoft

I’ve been playing around with refactoring a Koa application to use modern JavaScript constructs like async , await => and do away with generators etc. Let’s start with the production code, because this is not really a tutorial in TDD. Next up is the test infrastructure: describe ( 'User API' , () => {. test.js". }.

Testing 49
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

When programmers use test-driven development (TDD), the code they test interacts with other parts of the system that aren't being tested. Infrastructure Patterns. Infrastructure Wrappers. Nullable Infrastructure. Some code needed for the tests is written as tested production code, particularly for infrastructure classes.

Testing 40