logoalt Hacker News

mlmonkeytoday at 2:01 AM2 repliesview on HN

Recently, I have given up on writing unit tests, instead prompting an LLM to write them for me. I just sit back and keep prompting it until it gets it right. Sometimes it goes a little haywire in our Monorepo, but I don't have to accept its changes.

It feels ... strangely empowering.


Replies

elevationtoday at 5:02 AM

When I build unit tests around the right routines, I feel like all is right with the world. But some employers consider this gilding the lily.

But with LLMs in hand, I can generate entire suites of tests where they're most useful before management has the time to complain. All the little nice-to-have-but-hard-to-google environment tweaks are seconds away for the asking. It's finally cost effective to do things right.