News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by smnplk on Saturday January 11, 2020 @07:16PM (#22023427)
As a preventative measure, I write some tests for my tests. Also in TDD style of course. And on a very rare occasion, I have to write a test for those tests as well.
Re:Goodbye, Clean Code by natalyarostova on Sunday January 12, 2020 @01:36AM (#22024863)
It’s time for TTDD. Start by writing tests for your tests :)
Re:Goodbye, Clean Code by afarrell on Sunday January 12, 2020 @06:12AM (#22025708)
I do actually do that. I'll write some buggy code in order to learn how to test for it.

TDD for me is primarily a way to guide myself toward accomplishing a goal. So I sometimes write way more tests for myself than the business needs. I will then delete the scaffolding tests before I tag my PR for review.