LI Luca Ingianni Embedded software consultant working on agile methods, requirements engineering and continuous integration for embedded systems teams.

“I would be much more comfortable with the LLM rewriting large swaths of production code if it doesn't touch the tests than the other way around.”

The Agile Embedded Podcast · Hands-On Engineering Podcasts · November 2026

“I would be much more comfortable with the LLM rewriting large swaths of production code if it doesn't touch the tests than the other way around.” — Luca Ingianni, The Agile Embedded Podcast

Context

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.

Transcript

The Agile Embedded Podcast Around 10:33 into the episode
Luca Ingianni

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.

Jeff Gable

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

Luca Ingianni

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.

Jeff Gable

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

Luca Ingianni

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?

Jeff Gable

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…

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

More from The Agile Embedded Podcast