article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

JavaScript and Node.js) TDD Lunch & Learn Screencast. For each external system—service, database, file system, or even environment variables—create one wrapper class that’s solely responsible for interfacing with that system. A web application and microservice that performs ROT-13 encoding.

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. it("uses hosted page for authentication", function() { const client = createClient({ // Use the factory function. 27 Apr 2018. James Shore/Blog. Avoid creating complex webs of dependencies.

Testing 88
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. it("uses hosted page for authentication", function() { const client = createClient({ // Use the factory function. 27 Apr 2018. James Shore/Blog. Avoid creating complex webs of dependencies.

Testing 40