logoalt Hacker News

dxroshan04/24/20253 repliesview on HN

> The AI takes care of the tedious line by line what’s-the-name-of-that-stdlib-function parts (and most of the tedious test-writing parts)

AI generated tests are a bad idea.


Replies

simonw04/24/2025

AI generated tests are genuinely fantastic, if you treat them like any other AI generated code and review them thoroughly.

I've been writing Python for 20+ years and I still can't use unittest.mock without looking up the details every time. ChatGPT and Claude are great at that, which means I use it more often because I don't have to deal with the frustration of figuring it out.

apothegm04/24/2025

Just as with anything else AI, you never accept test code without reviewing it. And often it needs debugging. But it handles about 90% of it correctly and saves a lot of time and aggravation.

otabdeveloper404/24/2025

Well, maybe they just need X lines of so-called "tests" to satisfy some bullshit-job metrics.