Software Development

Implementation of Generative AI (ChatGPT, Gemini) in automated software testing pipelines?

SC Asked by Scott Parker · 10-10-2025
0 upvotes 11,082 views 0 comments
The question

I'm trying to integrate Generative AI (ChatGPT, Gemini) into our CI/CD pipeline to automatically generate unit tests. Is anyone successfully using these models to write test cases for legacy codebases that lack documentation? I'm worried about the accuracy of the generated tests.

3 answers

0
KI
Answered on 12-10-2025

Generating unit tests with Generative AI (ChatGPT, Gemini) is one of the most practical applications for modern software development. For legacy code, the model first needs to "explain" the code to you; once you verify its understanding is correct, you can prompt it to generate the corresponding test suites. In my current project, we used this method to increase our test coverage from 40% to 75% in just a few weeks. The key is to use the "Chain of Thought" prompting technique, where the AI describes the logic flow before writing the test code. This significantly reduces hallucinations and ensures the assertions are meaningful.

0
DA
Answered on 13-10-2025

Kimberly, how do you handle security concerns when pasting proprietary legacy code into Generative AI (ChatGPT, Gemini) for test generation?

SC 14-10-2025

Daniel, that is the biggest hurdle for most enterprises. We strictly use the "Enterprise" versions of these tools which promise that our data isn't used for training. For very sensitive modules, we use locally hosted versions of open-source models like Llama. This gives us the same generative power without the risk of leaking our intellectual property to the public cloud providers.

0
KA
Answered on 15-10-2025

Make sure to check the generated mocks; the AI often makes assumptions about your database schema that might not be entirely accurate in reality.

KI 16-10-2025

Exactly, Karen. I always tell my team to treat the AI-generated mocks as a template. You still need a human eye to ensure the data structures align with the production DB.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session