Remove Construction Remove Systems Review Remove TDD Remove Testing
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. This description takes the form of a test. Then, you implement a portion of the code that fulfills the test’s requirements.

article thumbnail

Why Dumb Tests are Smart ?

Xebia

Writing tests that help evolve a system is hard, and you get there by avoiding smart tests while preferring dumb ones. The Paradox of Smart Tests Smart is always better than dumb, isn’t it? This time we’ll look at the paradox that dumb programmer tests are superior to smart ones. Let’s dive in.

Testing 130
Insiders

Sign Up for our Newsletter

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

article thumbnail

Quality Control: Using Acceptance Testing to Guarantee Product Quality

Altexsoft

In software development, quality control exists alongside two other concepts: quality assurance (QA) and testing. Quality Assurance vs Quality Control vs Testing. The differences might not have much meaning for particular organizations or projects, who prefer to call all these processes QA or testing. Let’s examine them closer.

Testing 52
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 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. The test will store an object in a MongoDb database, then will call an HTTP-endpoint ( /user/:id ) that simply returns that object for us again. test" : "mocha -w -u bdd -R spec./*.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. 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