article thumbnail

TDD saved the day

Xebia

To tackle each operation, I started with a small test, following the principles of Test-Driven Development (TDD). If the tests became too complex, I knew something was missing. To construct the hierarchy, I did not require the GUI just yet. The design emerged from writing tests upfront.

article thumbnail

Why Dumb Tests are Smart ?

Xebia

There are strategies to get to tests that are both descriptive and easy to maintain, such as: The Test Data Builder Pattern , which allows you to construct test data in a better way. A thin, test-specific API around your production code that makes steps more expressive and course-grained.

Testing 130
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

Quality Control: Using Acceptance Testing to Guarantee Product Quality

Altexsoft

The Agile philosophy of software development changed how we understand and approach quality. When the waterfall method prevailed, quality management in software was similar to that of in manufacturing or construction. The focus was on fixing bugs as they happen and conducting testing only after the job has been done.

Testing 52
article thumbnail

Diving into the 4 rules of simple design

Habitable Code

Nevertheless, regardless of the prior state of the code, the 4 rules say that our first priority is the get the code working and tested again. And we’re allowed to break the other rules, if necessary, in order to get back to working and tested. Just do what you have to do in order to get that test passing again.

article thumbnail

Agile vs Waterfall: Key Differences And Definition?—?Which Model Is Better?

Codegiant

If you’ve taken customer feedback constructively and you were able to adapt to the changing environment successfully, you should come up with a great product. Now, let’s check which Agile development methodology would be most suitable for your team: Different Agile Methodologies Scrum ? Test-Driven Development ?—?TDD

Agile 52
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