Comment by dxroshan

Comment by dxroshan a day ago

3 replies

> 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.

simonw 15 hours ago

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.

apothegm 16 hours ago

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.

otabdeveloper4 19 hours ago

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