News for hackers. Stuff that matters.
Re:The Code Review Pyramid by recursive on Saturday July 08, 2023 @08:49PM (#36650287)
Unit tests tie you down to a specific problem decomposition.
Re:The Code Review Pyramid by Silhouette on Saturday July 08, 2023 @09:10PM (#36650431)
Units give you a specific problem decomposition.

Unit tests just help to make sure that the units you have right now are doing their jobs. Obviously if you change what units you have or how responsibilities are allocated among them then you will need corresponding changes in the unit tests.

Re:The Code Review Pyramid by bluGill on Saturday July 08, 2023 @09:55PM (#36650747)
Which is good only if you have the comprehensive integration tests as well.
Re:The Code Review Pyramid by Silhouette on Sunday July 09, 2023 @08:37AM (#36653983)
I don't see why. There are some type of code where I think unit testing is very beneficial and other types of code where I'd probably prefer a different style of testing. But for code where unit testing helps I find it useful independent of any of other types of testing that may or may not be happening as well.