David Rodenas PhD
1 min readJul 5, 2022

--

Hi András,

One question, how are the tests that you do when you practice TDD?

It looks like that you write QA Tests, not TDD Tests. They are quite different, although both are written with xUnit test tools. I say that because you focus all the explanation on the code, but TDD is focusing more on the business rule, or, as Kent Beck says, in the behavior: «Tests should be coupled to the behavior of code and decoupled from the structure of code».

If you focus the tests on the code, then you are not free to try different code architectures, neither to refactor. And that is crucial for TDD. And because what you say, it looks like that you write a kind of tests that does not let you that kind of exploration with the safety net of the test.

TDD is a design tool that assists you in the architecture design. If you cannot do that, probably you can start experimenting with different kinds of testing until you find the sweet spot.

I hope I helped.

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.

Responses (1)