Testing land

The pages here follow the order I would use to introduce testing to someone who has not written tests before. Each one answers a question rather than presenting a technique on its own, starting with what testing is for and whether it is worth writing a test at all, then moving to the types of tests and how to choose between them. The path is deliberately short. Testing is a subject where a small number of ideas carry most of the value and where the definitions are contested, so each page states which definition it is using and where that definition comes from. If you only read one, start with the types of tests, because that is the question that decides what the rest of the suite should look like.

Nov 13, 2023

Are true mocks evil?

The advent of mocking frameworks has revolutionized the way we write tests, but it has also sparked a debate about the ethics and effectiveness of using true mocks. In this article, we will explore the concept of true mocks, their advantages and disadvantages, and whether they are truly evil or...

Lego pieces with many shapes

Mar 13, 2017

2. Should I test?

This post emphasizes the importance of integrating testing into the development process, rather than treating it as a separate phase. It also highlights the benefits of TDD and the need for robust testing practices to ensure functionality and prevent code breakage.

You also might like

About this post

This post was not assisted by AI. The content was created entirely by a human.