Gaurav Khurana

About Speaker

Gaurav Khurana

Sr. Test Consultant
Microsoft

Gaurav Khurana, Senior Test Consultant at Microsoft for 7+ years , brings 15+ years of expertise in testing, automation.

A “Tester of the Year 2022” awardee and winner of multiple hackathons, he shares his learnings through blogs, videos, and talks, driven by his belief in #SharingIsCaring.

He has created multiple YouTube series which includes GitHub Copilot(GH-300) , AI 900, AI Browser Automation and AzureDevOps available on gauravkhurana.com

Demo Session - From Flaky to Bulletproof: Teaching AI to Smell Bad Test Patterns

Topic – From Flaky to Bulletproof: Teaching AI to Smell Bad Test Patterns

Flaky tests are the silent killers of engineering productivity. Everything passes locally, but CI tells a different story. Pipelines fail randomly, teams hit “re-run” out of habit, and over time, trust in the test suite erodes.

But here’s the truth — flaky tests aren’t random.

They follow patterns.

In this session, we’ll break down the most common causes of test flakiness — from missing awaits and timing issues to shared state and environment dependencies. These aren’t one-off mistakes; they’re repeatable anti-patterns that show up across codebases.

Then we take it a step further.

What if we could teach AI to recognize these patterns automatically?

Instead of relying on manual code reviews or post-failure debugging, we can use AI to “smell” bad test code before it reaches CI — flagging risky patterns, suggesting fixes, and improving test reliability at scale.

By the end of this talk, you won’t just understand flaky tests — you’ll know how to eliminate them systematically and build test suites your team can actually trust with AI

Scroll to Top