Unit tests are the worst. Don't get me wrong, they are an invaluable part of any CI pipeline or automation. But man are they a pain to write.
Most...
For further actions, you may consider blocking this person and/or reporting abuse
An alternative approach could be to have AI generate the unit tests first, based on the user story rather than code. We generate our scenarios during an interview with the client using ChatGPT. After the interview, we build the E2E tests directly from the stories. This gives our developers (or AI) something to start with that is easier than working through the narrative. It also provides a nice intermediate language for process discussions.
I love TDD but always find myself doing the opposite and paying for it. We loved that we had tests, and documentation before writing actual code. But in a fast fast-paced world of breaking things and failing fast we often, shamefully, do the reverse.
Thank you for a brilliant article. I have shared it with my team as I know some who use GPT to write tests 🤭