Hacker News new | ask | show | jobs
by discreteevent 41 days ago
> That probably means a test suite that is at least twice the size of your code base.

If you've got a test suite that's twice the size of the code base then those tests are almost certainly tied to implementation details and will make the code a lot less like clay.

2 comments

And from what I've seen the AI tools love creating these, so the overall state is just going to get worse over time as everything drifts.
Is this always true? I'm honestly not sure. For unit tests I completely agree with you, for integration tests I'm not so sure—validating permutations does not necessarily couple you to code, and may in fact be good discipline for user expectations.