logoalt Hacker News

enraged_cameltoday at 4:15 PM0 repliesview on HN

I don't know about anyone else, but for me, even though the AI writes a lot of code, the vast majority of that code tends to be... tests. Same with my coworkers.

This morning I reviewed a 1,200 LoC PR. Pretty large by pre-AI standards. But most of it was tests. Before AI, it would be a lot smaller, but only because the PR author wouldn't be nearly as diligent with test coverage as AI tends to be.

And to preempt some common rebuttals:

1. I always read the tests to make sure they are meaningful, and rules and subagent review routines in place to make sure stuff like "assert 1 == 1" or "Process.sleep(5000)" never make it in.

2. Tests do add a maintenance burden as well, but I find that it's pretty easy to refactor and condense tests.