Remove .Net Remove System Design Remove TDD Remove Testing
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

Automated tests are important. Unfortunately, many automated tests also waste a huge amount of time. The easy, obvious way to write tests is to make broad tests that are automated versions of manual tests. It’s also easy to make poor-quality tests that are hard to read, or end up only testing themselves.

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. To test those interactions, and to prevent the other code from interfering with their tests, programmers often use mock objects or other test doubles.

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. To test those interactions, and to prevent the other code from interfering with their tests, programmers often use mock objects or other test doubles.

Testing 40