When I started doing TDD, I wrote a quite complex backend server for machine to machine communication in a small start up alone. I did it completely TDD. By the time I was finished coding, I started it and since then it ran, no bugs in production.
Good question. This project was almost 10 years ago, I have to say can’t recall all the details. But we’ve already had a well defined model for the communication.
However, now I remember one thing that actually didn’t work - because I couldn’t test it. It was the database queries. There had been bugs in the queries itself.
Nowadays, I would simply write integration tests with SpringBoot and test containers to validate the queries.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When I started doing TDD, I wrote a quite complex backend server for machine to machine communication in a small start up alone. I did it completely TDD. By the time I was finished coding, I started it and since then it ran, no bugs in production.
That sounds very validating. How did you test the integrations to other machines?
Good question. This project was almost 10 years ago, I have to say can’t recall all the details. But we’ve already had a well defined model for the communication.
However, now I remember one thing that actually didn’t work - because I couldn’t test it. It was the database queries. There had been bugs in the queries itself.
Nowadays, I would simply write integration tests with SpringBoot and test containers to validate the queries.