News for hackers. Stuff that matters.
Re:Evil Unit Testing (2019) by nerdponx on Thursday September 24, 2020 @10:07AM (#24578720)
That's why they said "often".

A better definition might be "the smallest amount of testable functionality".

Re:Evil Unit Testing (2019) by exdsq on Thursday September 24, 2020 @10:28AM (#24578905)
Which is a function.
Re:Evil Unit Testing (2019) by JoeNr76 on Thursday September 24, 2020 @03:42PM (#24582688)
It might start out as a function, then become a factory, then an object and if you bind your test to the implementation details of this code, you will have to rewrite your test every time you refactor your code. Not ideal.