Took me more than a year to write the test before the production code implementation! I think the reason is that my team doesn't appreciate automatic tests, so I have to implement them as soon as possible!
Your workflow is what I am doing as a spring boot java backend developer! If I write the test after the implementation of the production code, and my test succeeds, I will break my code to see my test failure anyway 😆
Yasmin Archibald this workflow is better and feels natural now! So many small mistakes are fixed immediately, even when I am programming tired or not too concentrated on the task!
I learn that the developer needs to want to learn the TDD way... Because It is not natural when you started!
Yeah agreed, that's the case for so many ways of working that in the end save a lot of time. It can feel like you're putting in a lot of extra effort, but taking the time to step up a workflow that results in maintainable code is so much better than winging it only to get stuck with no way out in sight when you're knee deep in a long and confusing bit of work. I learn this lesson over and over hahaha.
Renan Franca
Took me more than a year to write the test before the production code implementation! I think the reason is that my team doesn't appreciate automatic tests, so I have to implement them as soon as possible!
Your workflow is what I am doing as a spring boot java backend developer! If I write the test after the implementation of the production code, and my test succeeds, I will break my code to see my test failure anyway 😆