The Agile Embedded Podcast · Hands-On Engineering Podcasts · November 2026
Jeff had said LLMs will happily refactor big chunks of code, where unit-test friction used to discourage refactoring. Luca replies that letting an LLM rewrite the test suite without oversight carries risks you may not notice.
because if you allow an LLM to rewrite your test suite without sufficient oversight, which then again slows you down because you need to actually pay attention, you may introduce risks that you're not even aware of and that will come back to bite you at the worst times.
Yeah, it's true. It's just like it's just like any aspect of writing code with an LLM, you know, you have to, you have to make that balance of what level of oversight you want to apply to it. But I
think the bottom line is I would be much more comfortable with the LLM rewriting large swaths of production code if it doesn't touch the tests than the otherwise.
Yes. And so maybe at that point, maybe we have more and more integration tests. Maybe I am coming back around to the fat middle where you have lots and lots of integration tests because they tend to survive. Yeah, these tend to be more stable because they're higher level. They survive refactoring.…
Actually, I wanted to ask a question. Yes. Have you or are you in the habit of removing unit tests at some point after they've been written?
I was thinking about that as well. I wouldn't hesitate to advocate for that if it fits, say, a client's situation if I were working with someone. I have found that I do not just because, again, I do that rapid prototyping, but then once I build a module for a medical device, that module is going to…