News for hackers. Stuff that matters.
Re:An Unexpected Benefit of Unit Tests by donatj on Saturday January 21, 2023 @01:40PM (#34468914)
> people just write useless tests that test absolutaly nothing usefull, and are worth nothing.

Oh man, those are my favorite. They're super difficult to critique in code review. "This test doesn't really test anything" isn't very helpful but writing a proper "do this" is often more work than writing a proper test yourself.

Re:An Unexpected Benefit of Unit Tests by nerdponx on Saturday January 21, 2023 @03:22PM (#34470038)
Is that not helpful? It's definitely helpful.

"This test doesn't do anything", then reject & request changes, "add substantive tests that cover the following invariants: ...".

Re:An Unexpected Benefit of Unit Tests by major505 on Saturday January 21, 2023 @04:10PM (#34470570)
Thats the thing. Its hard to describe, but you know when you see it.