VOOZH about

URL: https://thenewstack.io/ai-is-testing-ai-generated-code-should-you-trust-it/

⇱ AI Is Testing AI-Generated Code: Why You Should Trust It - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-08-22 14:05:46
AI Is Testing AI-Generated Code: Why You Should Trust It
sponsor-harness,sponsored-webinar,
AI / AI Agents / Software Testing

AI Is Testing AI-Generated Code: Why You Should Trust It

Devs are spending increasingly more time debugging erratic AI-generated code. Is more AI really the answer to the workflow testing dilemma?
Aug 22nd, 2025 2:05pm by Vicki Walker
👁 Featued image for: AI Is Testing AI-Generated Code: Why You Should Trust It
Screenshot by The New Stack.
Harness sponsored this post.

Note: This article was originally published on July 28, 2025, and has been updated with information from the webinar.

That AI has become the engine behind modern software development is undeniable: More than 30% of Google’s code is written by AI; at Microsoft, the number is “as much as 30%.”

While generative AI (GenAI) can write more code more quickly than human developers, making people feel more productive, it introduces significant problems: Because AI-written code is unpredictable, often inaccurate, unsafe and unreliable, testing and debugging require significant effort.

As Deba Chatterjee, head of products for AI Test Automation at Harness AI, explained in a recent webinar, “you may encounter a production issue that you haven’t encountered before.” One reason is that the way you test human-written code is very different from how you can test AI-generated code, Chatterjee said, which potentially creates reliability and security issues.

“When you bring a developer to troubleshoot a problem that was created off of AI-generated code, the developer has to reverse-engineer it, and then figure out where the issues are,” he said. This tracks with a key finding in Harness’ State of Software Delivery 2025 report: two-thirds of developers say they spend excessive time debugging and resolving security vulnerabilities in AI-generated code.

As AI becomes the engine behind modern software delivery, ensuring the reliability and safety of AI-driven workflows is mission-critical.

Why AI Might Be the Right Answer

As organizations try to solve these problems, many are exploring ways to use GenAI to test their code, both AI and non-AI workflows. It seems counterintuitive: Why would you use unpredictable technology to test unpredictable technology?

Fortunately, this is not only possible, but companies like Harness are already successfully putting it into practice. And by watching AI Testing AI: How to Build Unbreakable Validation for Unpredictable Systems on demand, you’ll have the opportunity to see exactly how Harness is using AI-powered test generation, self-healing test suites, and intelligent test selection to validate AI workflows.

During this free webinar, Chatterjee and Rohan Gupta of Harness joined The New Stack Host Chris Pirillo to pull back the curtain on how Harness uses advanced agentic AI-powered testing to rigorously validate its own AI workflows.

They not only demonstrated the power of AI in testing AI; they explored how to use agentic AI-powered testing to test non-AI workflows.

Watch This Free Webinar Today!

What You’ll Learn

By watching this webinar on demand, you’ll receive best practices, real-world examples and actionable tips including:

  • Leveraging AI-powered test generation, self-healing test suites and intelligent test selection to achieve rapid, resilient and scalable validation of AI workflows.
  • Using advanced techniques to comprehend, challenge and validate the intricate, dynamic behaviors of AI workflows, thereby ensuring trust and transparency in automated decision-making.
  • Seeing how using AI to test AI has slashed test cycle times by up to 80%, reduced test maintenance by 70% and enabled continuous quality at the speed of innovation.

Chatterjee and Gupta also demonstrated how Harness’s AI Test Automation validates AI and non-AI workflows, showcasing intent-based testing, smart selectors and automated adaptation to application changes. Watch now and learn what you need to know about AI testing AI!

Watch this on-demand webinar now!👁 Image

Harness, the Software Delivery Platform, automates the entire CI/CD process, allowing engineers to build, test, deploy, and verify their software with enterprise-grade security and speed. Harness uses machine learning to protect you when deployments fail. Software delivery has never been so simple.
Learn More
TRENDING STORIES
As senior sponsor editor at The New Stack, Vicki collaborates with our sponsors to create and publish exceptional content that resonates with our readers. She has many years of experience (more than she would prefer to admit) in technology publishing...
Read more from Vicki Walker
Harness sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.