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. This resulted in a collection of “change” objects.

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

The #1 challenge for teams after scrum training is writing small, well-scoped, testable stories.

Net Objectives

When people learn the core of acceptance test-driven development (ATDD) using behavior driven development's (BDD) Given-When-Then construct, they leave the workshop having written small stories from their own backlog. That has to be taught separately. .

SCRUM 40
article thumbnail

AoAD2 Practice: Reflective Design

James Shore

Test-Driven Development. I wanted my new login endpoint to have sociable tests. See “Write Sociable Tests” on p.XX.) Rather than abandon that core idea, I amplified it by making the infrastructure wrappers nullable, which later allowed me to use test-driven development to make a new, cleaner Auth0 login endpoint.

article thumbnail

Goss

taos

One practice less frequently discussed is test-driven-development: write a test-case for the infrastructure before writing the implementation. Between the two, we have the capability of constructing powerful generic profiles for the entirety of our environment. These practices are now common.

article thumbnail

Introduction to database testing

CircleCI

We have looked at testing code and also how to properly test APIs , but what about the data layer of our application? What is database testing all about? This process may include validating the schema, testing CRUD operations and transactions to make sure that the database is set up correctly. Conclusion.

Testing 75
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.