You guys realize that we always had the option to not write unit tests, right? We didn't used to need AI overlords to write them, we used to just not write them
I mean, there are arguments to be made for using a strongly typed language and just investing in higher value tests like integration and acceptance tests. Arguably that surfaces failures you couldn't anticipate in runtime exceptions more immediately and with less foresight. It's not a junior /senior issue. IMHO It's a legacy of limitations from Ruby on rails community that perpetuated test driven development craze; I'd argue because their tooling doesn't serve software safety. Source was working in 2010s as a software eng and everybody wouldn't shut up about tdd.
I feel like you missed my points I was making. Au contraire, I never said unit tests were the same as integration or acceptance, I'm making a normative claim: that the reason we shoot for 100% code coverage (unit tests being largely the biggest bloat because it's the smallest possible logical test) is because our compilers, interpreters, language specifications, and tooling do not support us. No one writes a unit test to validate that the function "timesThree" takes a number and returns a number in Haskell. They are writing property based tests that test behavior across a range of inputs, integration tests to validate the results can be stored in our databases, and acceptance tests to see if the user can have expected behavior with requirements. There are rarely any cases where a unit test will fail but an acceptance test will succeed, and that delta is better covered in property based tests which can absolutely be a part of the acceptance for higher value. I also make a historical claim that TDD became popular from the ruby ecosystem because they have zero tooling (at the time anyway) to handle type issues. They have since attempted to address this for this reason.
Normative claim is what ought to be in software, I'm not talking about 'well it's frequently required and a good proxy for a team who cares' which is a hard thing to quantify but adjacent entirely to what I'm saying.
View all comments
77
u/Sulungskwa Oct 02 '26 edited Oct 02 '26
You guys realize that we always had the option to not write unit tests, right? We didn't used to need AI overlords to write them, we used to just not write them